The regionEnd() method of Matcher Class is used to get the endIndex of the region to be matched by the pattern in the current matcher.… Read More
Tag Archives: Java-Matcher
The appendTail(StringBuffer) method of Matcher Class behaves as a append-and-replace method. This method reads the input string and appends it to the given StringBuffer at… Read More
The appendTail(StringBuilder) method of Matcher Class behaves as a append-and-replace method. This method reads the input string and appends it to the given StringBuilder at… Read More
The region(int, int) method of Matcher Class restricts the region to be matched by the pattern. This region must be lesser than or same as… Read More
The lookingAt() method of Matcher Class attempts to match the pattern partially or fully in the matcher. It returns a boolean value showing if the… Read More
The reset() method of Matcher Class is used to reset this matcher, in order to understand it better it is recommended to have prior knowledge… Read More
The end(int group) method of Matcher Class is used to get the offset after the end index of the match result already done, from the… Read More
The start(int group) method of Matcher Class is used to get the start index of the match result already done, from the specified group. Syntax:… Read More
The start() method of Matcher Class is used to get the start index of the match result already done. Syntax: public int start() Parameters: This… Read More
The group(int group) method of Matcher Class is used to get the group index of the match result already done, from the specified group. Syntax:… Read More
The find(int start) method of Matcher Class attempts to find the next subsequence after the specified subsequence number, passed as parameter, of the input sequence… Read More
The start(String string) method of Matcher Class is used to get the start index of the match result already done, from the specified string. Syntax:… Read More
The usePattern() method of Matcher Class is used to get the pattern to be matched by this matcher. Syntax: public Matcher usePattern(Pattern newPattern) Parameters: This… Read More
The find() method of Matcher Class attempts to find the next subsequence of the input sequence that find the pattern. It returns a boolean value… Read More
The matches() method of Matcher Class is used to get the result whether this pattern matches with this matcher or not. It returns a boolean… Read More