The pattern() method of Matcher Class is used to get the pattern to be matched by this matcher. Syntax: public Pattern pattern() Parameters: This method… Read More
Tag Archives: Java-Matcher
The toMatchResult() method of Matcher Class is used to get the current result state of this Matcher. Syntax: public MatchResult toMatchResult() Parameters: This method do… Read More
The groupCount() method of Matcher Class is used to get the number of capturing groups in this matcher’s pattern. Syntax: public int groupCount() Parameters: This… Read More
The quoteReplacement(String string) method of Matcher Class is used to get the replacement String literal of the String passed as parameter. This String literal acts… Read More
The group(String string) method of Matcher Class is used to get the group of the match result already done, from the specified string. Syntax: public… Read More
The group() method of Matcher Class is used to get the input subsequence matched by the previous match result. Syntax: public String group() Parameters: This… Read More
The reset(CharSequence input) method of Matcher Class is used to reset this matcher and insert the input String passed as the parameter to this matcher.… Read More
The end() method of Matcher Class is used to get the offset after the last character matched of the match result already done. Syntax: public… Read More