In Java, Matcher is a class that is implemented by the MatchResult interface, that performs match operations on a character sequence by interpreting a Pattern.… Read More
Tag Archives: Java-Matcher
The toString() method of Matcher Class is used to get the String representation of this matcher. This method is derived from the Object Class and… Read More
The requireEnd() method of Matcher Class is used to check if any combination of anchors has caused the match to be bounded at the end.… Read More
The hitEnd() method of Matcher Class is used to check if this the matching of the pattern on this matcher has stopped or not. The… Read More
The hasAnchoringBounds() method of Matcher Class is used to check if this matcher has anchoring bounds or not. By anchoring bounds, it means that the… Read More
The useAnchoringBounds(boolean) method of Matcher Class is used to set the anchoring bounds of this matcher. By anchoring bounds, it means that the matcher will… Read More
The useTransparentBounds(boolean) method of Matcher Class is used to set the transparent bounds of this matcher. By transparent bounds, it means that the matcher will… Read More
The replaceFirst() method of Matcher Class behaves as an append-and-replace method. This method reads the input string and replaces it with the first matched pattern… Read More
The replaceFirst(Function) method of Matcher Class behaves as a append-and-replace method. This method replaces first instance of the pattern matched in the matcher with the… Read More
The replaceAll(Function) method of Matcher Class behaves as a append-and-replace method. This method replaces all instances of the pattern matched in the matcher with the… Read More
The replaceAll(String) method of Matcher Class behaves as a append-and-replace method. This method reads the input string and replace it with the matched pattern in… Read More
The appendReplacement(StringBuffer, String) method of Matcher Class behaves as a append-and-replace method. This method reads the input string and replace it with the matched pattern… Read More
The hasTransparentBounds() method of Matcher Class is used to check if this matcher has transparent bounds or not. By transparent bounds, it means that the… Read More
The appendReplacement(StringBuilder, String) method of Matcher Class behaves as a append-and-replace method. This method reads the input string and replace it with the matched pattern… Read More
The regionStart() method of Matcher Class is used to get the startIndex of the region to be matched by the pattern in the current matcher.… Read More