Java Development
-
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 » -
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 » -
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 » -
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 » -
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 »