public final class PatternUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Pattern |
createPattern(String regexp)
Compiles the given regular expression to a Perl5 pattern object.
|
public static Pattern createPattern(String regexp) throws IllegalArgumentException, ProgrammingException
regexp - the String value of the Perl5 regular expresssion, cannot be null.nullIllegalArgumentException - if regexp == null.ProgrammingException - if the pattern cannot be complied.See http://www.xins.org/.