Core Java
-
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 » -
Matcher start with parameter example
This is an example of how to use Matcher.start(int group) API method to get the start index of the subsequence…
Read More » -
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 » -
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 » -
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 » -
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 » -
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 »