RegexEngineImpl
, RegexEngineImpl
public interface RegexEngine
Modifier and Type | Method | Description |
---|---|---|
Regex |
compile(java.lang.String str) |
Compiles a string containing a regular expression into a
Regex object. |
Regex compile(java.lang.String str) throws RegexSyntaxException
Regex
object.
The Regex
object can be used to test whether a string matches the regular
expression.str
- a String containing a regular expressionRegex
for str
RegexSyntaxException
- if str
is not a valid regular expression