Skip to content

Tag Archives: java-regular-expression

Problem Statement: Given a String extract the substring enclosed in single quotes (‘) using Java Regex.  Java regex is an API for pattern matching with… Read More
Given string str of length N, the task is to check whether the given string contains uppercase alphabets, lowercase alphabets, special characters, and numeric values… Read More
Given a string, the task is to find its corresponding datatype using regular expression in java. We can broadly classify all data types into following… Read More
Given a large number in form of string N, the task is to insert a dash between two adjacent odd digits in the given number… Read More
Given a string in camel case, the task is to write a Java program to convert the given string from camel case to snake case… Read More
Given a string, the task is to write a Java program to check whether the string contains only alphabets or not. If so, then print… Read More
Given a string str, the task is to remove all non-alphanumeric characters from it and print the modified it. Examples:  Input: @!Geeks-for’Geeks,123 Output: GeeksforGeeks123 Explanation: at symbol(@), exclamation… Read More
Given a number N, the task is to check first whether the given number is binary or not and its value should be greater than… Read More
Given a string str, the task is to write a Java program to check whether a string contains only digits or not. If so, then… Read More
Given a URL as a character string str of size N.The task is to check if the given URL is valid or not.Examples :  Input… Read More
Given an IP address, the task is to validate this IP address with the help of Regex (Regular Expression) in C++ as a valid IPv4… Read More
Given a string txt, the task is to find the index of currency symbols present in the given string.Examples:   Input: txt = “Currency symbol of… Read More
Given string str, the task is to check whether the given string is a valid MAC address or not by using Regular Expression. A valid… Read More
Given string str, the task is to check whether the given string is valid GUID (Globally Unique Identifier) or not by using Regular Expression.The valid… Read More
Given string str, the task is to check whether the given string is a valid Indian driving license number or not by using Regular Expression.The… Read More