Core Java
-
Regular expressions for IP v4 and IP v6 addresses
In this example we shall show you how to check if an address is an IPv4 or IPv6 address, using…
Read More » -
Swing GUI application for regular expression testing
This is an example of how to create a Swing GUI application for regular expression testing. The application creates a…
Read More » -
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 » -
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 » -
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 » -
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 » -
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 » -
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 » -
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 » -
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 »