core java
-
regex
Matcher start example
In this example we shall show you how to use Matcher.start() API method to get the start index of the…
Read More » -
regex
Java Matcher find Demonstration
With this example, we are going to demonstrate how to use Java Matcher find() API method to find subsequences of…
Read More » -
regex
Matcher reset example
This is an example of how to use Matcher.reset() API method to reset a Matcher, by discarding all of its…
Read More » -
regex
Back references example
In this example we shall show you how to use Matcher.replaceAll(String replacement) API method to replace every subsequence of an…
Read More » -
regex
Matcher.appendReplacement example
With this example we are going to demonstrate how to use Matcher.appendReplacement(StringBuffer sb, String replacement) API method to append to…
Read More » -
regex
Matcher groupCount example
In this example we shall show you how to use Matcher.groupCount() API method to get the number of capturing groups…
Read More » -
regex
Matcher group example
This is an example of how to use Matcher.group(int group) API method to get the input subsequence captured by the…
Read More » -
regex
Match address using regular expressions
This is an example of how to match an address using regular expressions. We have created a method boolean isValidAddr(String…
Read More » -
regex
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 » -
regex
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 »