public class RegExp
extends java.lang.Object
Constructor and Description |
---|
RegExp(java.lang.String pattern)
Creates a new case-sensitive regular expression.
|
RegExp(java.lang.String pattern,
boolean ignoreCase)
Creates a new regular expression.
|
Modifier and Type | Method and Description |
---|---|
Matcher |
matcher(CharBuffer str)
Deprecated.
The CharBuffer class has been deprecated in favor
of ReaderBuffer as of version 1.5. Create a ReaderBuffer
and use the matcher(ReaderBuffer) method instead of this one.
|
Matcher |
matcher(ReaderBuffer buffer)
Creates a new matcher for the specified look-ahead character
input stream.
|
Matcher |
matcher(java.lang.String str)
Creates a new matcher for the specified string.
|
java.lang.String |
toString()
Returns a string representation of the regular expression.
|
public RegExp(java.lang.String pattern) throws RegExpException
pattern
- the regular expression patternRegExpException
- if the regular expression couldn't be
parsed correctlypublic RegExp(java.lang.String pattern, boolean ignoreCase) throws RegExpException
pattern
- the regular expression patternignoreCase
- the character case ignore flagRegExpException
- if the regular expression couldn't be
parsed correctlypublic Matcher matcher(CharBuffer str)
str
- the string to work withpublic Matcher matcher(java.lang.String str)
str
- the string to work withpublic Matcher matcher(ReaderBuffer buffer)
buffer
- the character input bufferpublic java.lang.String toString()
toString
in class java.lang.Object