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