java.lang.Object
java.util.regex.Pattern
- All Implemented Interfaces:
- java.io.Serializable
- public final class Pattern
- extends java.lang.Object
- implements java.io.Serializable
Compiled regular expression ready to be applied.
- Since:
- 1.4
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
CANON_EQ
public static final int CANON_EQ
- See Also:
- Constant Field Values
CASE_INSENSITIVE
public static final int CASE_INSENSITIVE
- See Also:
- Constant Field Values
COMMENTS
public static final int COMMENTS
- See Also:
- Constant Field Values
DOTALL
public static final int DOTALL
- See Also:
- Constant Field Values
MULTILINE
public static final int MULTILINE
- See Also:
- Constant Field Values
UNICODE_CASE
public static final int UNICODE_CASE
- See Also:
- Constant Field Values
UNIX_LINES
public static final int UNIX_LINES
- See Also:
- Constant Field Values
regex
private final java.lang.String regex
flags
private final int flags
re
private final gnu.regexp.RE re
Pattern
private Pattern(java.lang.String regex,
int flags)
throws PatternSyntaxException
getRE
gnu.regexp.RE getRE()
compile
public static Pattern compile(java.lang.String regex)
throws PatternSyntaxException
compile
public static Pattern compile(java.lang.String regex,
int flags)
throws PatternSyntaxException
flags
public int flags()
matches
public static boolean matches(java.lang.String regex,
java.lang.CharSequence input)
matcher
public Matcher matcher(java.lang.CharSequence input)
split
public java.lang.String[] split(java.lang.CharSequence input)
split
public java.lang.String[] split(java.lang.CharSequence input,
int limit)
pattern
public java.lang.String pattern()