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