Skip to content

Tag Archives: Java-Pattern

The strategy design pattern is intended to provide a way to choose from a variety of interchangeable strategies. Classic implementation includes an architecture to be… Read More
toString() method of a Pattern class used to return the string representation of this pattern. This return the regular expression from which this pattern was… Read More
splitAsStream() method of a Pattern class used to return a stream of String from the given input sequence passed as parameter around matches of this… Read More
asPredicate() method of a Pattern class used to creates a predicate object which can be used to match a string.Predicate is a functional interface and… Read More
split(CharSequence, int) method of a Pattern class used to splits the given char sequence passed as parameter to method around matches of this pattern.The array… Read More
quote(String) method of a Pattern class used to returns a literal pattern String for the specified String passed as parameter to method.This method produces a… Read More
split(CharSequence) method of a Pattern class used to splits the given char sequence passed as parameter to method around matches of this pattern.This method can… Read More
The matches(String, CharSequence) method of the Pattern class in Java is used to answer whether or not the regular expression matches on the input. To… Read More
The flags() method of the Pattern class in Java is used to return the pattern’s match flags. The Match flags are a bit mask that… Read More
The compile(String, int) method of the Pattern class used to create a pattern from the regular expression with the help of flags where both expression… Read More
The compile(String) method of the Pattern class in Java is used to create a pattern from the regular expression passed as parameter to method. Whenever… Read More
The pattern() method of the Pattern class in Java is used to get the regular expression which is compiled to create this pattern. We use… Read More
The matcher(CharSequence) method of the Pattern class used to generate a matcher that will helpful to match the given input as parameter to method against… Read More