Java java.util.regex Pattern fields, constructors, methods, implement or subclass

Example usage for Java java.util.regex Pattern fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util.regex Pattern.

The text is from its open source code.

Field

intUNIX_LINES
Enables Unix lines mode.
intCASE_INSENSITIVE
Enables case-insensitive matching.
intCOMMENTS
Permits whitespace and comments in pattern.
intMULTILINE
Enables multiline mode.
intLITERAL
Enables literal parsing of the pattern.
intDOTALL
Enables dotall mode.
intUNICODE_CASE
Enables Unicode-aware case folding.
intCANON_EQ
Enables canonical equivalence.
intUNICODE_CHARACTER_CLASS
Enables the Unicode version of Predefined character classes and POSIX character classes.
Stringpattern
The original regular-expression pattern string.
intflags
The original pattern flags.

Constructor

Method

PredicateasPredicate()
Creates a predicate that tests if this pattern is found in a given input string.
Patterncompile(String regex)
Compiles the given regular expression into a pattern.
Patterncompile(String regex, int flags)
Compiles the given regular expression into a pattern with the given flags.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
Matchermatcher(CharSequence input)
Creates a matcher that will match the given input against this pattern.
booleanmatches(String regex, CharSequence input)
Compiles the given regular expression and attempts to match the given input against it.
Stringquote(String s)
Returns a literal pattern String for the specified String .
String[]split(CharSequence input)
Splits the given input sequence around matches of this pattern.
String[]split(CharSequence input, int limit)
Splits the given input sequence around matches of this pattern.
StreamsplitAsStream(final CharSequence input)
Creates a stream from the given input sequence around matches of this pattern.
StringtoString()

Returns the string representation of this pattern.