core java
-
regex
Pattern matcher example – Part 2
This is an example of how to use a Pattern Matcher to match an input String with a specified pattern. Matching…
Read More » -
regex
Pattern matcher example
In this example we shall show you how to use a Matcher and a Pattern in Java to match an…
Read More » -
regex
Regular expression match group example
This is an example of how to use a regular expression match group. Using a regular expression to group matches of…
Read More » -
regex
Split a string into an array by regular expressions
This is an example of how to split a string into an array by regular expressions. Splitting a string by regular…
Read More » -
regex
Case control example
In this example we shall show you how to handle a case control using a class with a regular expression. To…
Read More » -
regex
String.matches method example
With this example we shall show you how to use String.matches(String regex) API method to check if a given String…
Read More » -
regex
List files with regular expression filtering
This is an example of how to list files using regular expression filtering. In order to list Files using regular expressions…
Read More » -
regex
Remove line termination characters from string
In this example we shall show you how to remove line termination characters from a String, using regular expressions. To…
Read More » -
regex
Compile Reg Ex pattern with multiple flags
With this example we shall show you how to compile regular expression to a Pattern with multiple flags. Compiling a regular…
Read More » -
regex
Greedy and non-greedy Reg Ex matching
This is an example of how to use greedy and non-greedy regular expression matching. Greedy matching means that the expression will…
Read More »