interface PatternCompiler
java.util.regex library, but an alternate implementation can be supplied using the ServiceLoader mechanism.| Modifier and Type | Method and Description |
|---|---|
CommonPattern |
compile(java.lang.String pattern)
Compiles the given pattern.
|
boolean |
isPcreLike()
Returns
true if the regex implementation behaves like Perl -- notably, by supporting
possessive quantifiers but also being susceptible to catastrophic backtracking. |
CommonPattern compile(java.lang.String pattern)
java.lang.IllegalArgumentException - if the pattern is invalidboolean isPcreLike()
true if the regex implementation behaves like Perl -- notably, by supporting
possessive quantifiers but also being susceptible to catastrophic backtracking.