public class RegexEngineImpl extends Object implements RegexEngine
RegexEngine using the Xerces 2 regular expression
implementation.| Constructor and Description |
|---|
RegexEngineImpl() |
| Modifier and Type | Method and Description |
|---|---|
Regex |
compile(String expr)
Compiles a string containing a regular expression into a
Regex object. |
public Regex compile(String expr) throws RegexSyntaxException
RegexEngineRegex object.
The Regex object can be used to test whether a string matches the regular
expression.compile in interface RegexEngineexpr - a String containing a regular expressionRegex for strRegexSyntaxException - if str is not a valid regular expression