public final class UncheckedRE extends RE
Note that this makes UncheckedRE dangerous if constructed with dynamic data. Do not use UncheckedRE unless you are completely sure that all input being passed to it contains valid, well-formed regular expressions for the syntax specified.
RE
,
Serialized FormREG_ANCHORINDEX, REG_DOT_NEWLINE, REG_ICASE, REG_MULTILINE, REG_NO_INTERPOLATE, REG_NOTBOL, REG_NOTEOL
Constructor and Description |
---|
UncheckedRE(Object pattern)
Constructs a regular expression pattern buffer without any compilation
flags set, and using the default syntax (RESyntax.RE_SYNTAX_PERL5).
|
UncheckedRE(Object pattern,
int cflags)
Constructs a regular expression pattern buffer using the specified
compilation flags and the default syntax (RESyntax.RE_SYNTAX_PERL5).
|
UncheckedRE(Object pattern,
int cflags,
RESyntax syntax)
Constructs a regular expression pattern buffer using the specified
compilation flags and regular expression syntax.
|
chain, dump, getAllMatches, getAllMatches, getAllMatches, getLocalizedMessage, getMatch, getMatch, getMatch, getMatch, getMatchEnumeration, getMatchEnumeration, getMatchEnumeration, getMatchImpl, getMinimumLength, getNumSubs, initialize, isMatch, isMatch, isMatch, match, setUncle, substitute, substitute, substitute, substituteAll, substituteAll, substituteAll, toString, version
public UncheckedRE(Object pattern)
pattern
- A regular expression pattern, in the form of a String,
StringBuffer or char[]. Other input types will be converted to
strings using the toString() method.RuntimeException
- The input pattern could not be parsed.NullPointerException
- The pattern was null.public UncheckedRE(Object pattern, int cflags)
pattern
- A regular expression pattern, in the form of a String,
StringBuffer, or char[]. Other input types will be converted to
strings using the toString() method.cflags
- The logical OR of any combination of the compilation flags in the RE class.RuntimeException
- The input pattern could not be parsed.NullPointerException
- The pattern was null.public UncheckedRE(Object pattern, int cflags, RESyntax syntax)
pattern
- A regular expression pattern, in the form of a String,
StringBuffer, or char[]. Other input types will be converted to
strings using the toString() method.cflags
- The logical OR of any combination of the compilation flags in the RE class.syntax
- The type of regular expression syntax to use.RuntimeException
- The input pattern could not be parsed.NullPointerException
- The pattern was null.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses