Skip to content

Tag Archives: java-regular-expression

Regular expressions (also called “Regex”) are special types of pattern-matching strings that describe a pattern in a text. A regex can be matched against another… Read More
Regex stands for Regular Expression, which is used to define a pattern for a string. It is used to find the text or to edit… Read More
String startsWith() as the syntax suggests this method is present in String class which is responsible for testing if a string starts with the specified… Read More
So primarily discuss what is endsWith() method is, so it is a method of String class that checks whether the string ends with a specified… Read More
Special Characters like dot(.), hash(#), etc., which have a special meaning to the regular expression need to be escaped to match in the regular expression.… Read More
In this article, we will learn how to make Java Regular Expression case-insensitive in Java. Java Regular Expression is used to find, match, and extract… Read More
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 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… 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 string str, the task is to write a Java program to check whether a string contains only digits or not. If so, then print… Read More

Start Your Coding Journey Now!