-
regex
Matcher group with parameter example
With this example we are going to demonstrate how to use Matcher.group(int group) API method to get the input subsequence…
Read More » -
regex
Matcher replaceAll 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 match example
This is an example of how to make a match using a Matcher against a Pattern. Making a match using…
Read More » -
regex
Matcher end example
With this example we are going to demonstrate how to use Matcher.end() API method to get the offset after the last…
Read More » -
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
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
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 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
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
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 »