Interface RegexEngine
-
- All Known Implementing Classes:
RegexEngineImpl,RegexEngineImpl
public interface RegexEngineA provider of a regular expression matching capability.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Regexcompile(java.lang.String str)Compiles a string containing a regular expression into aRegexobject.
-
-
-
Method Detail
-
compile
Regex compile(java.lang.String str) throws RegexSyntaxException
Compiles a string containing a regular expression into aRegexobject. TheRegexobject can be used to test whether a string matches the regular expression.- Parameters:
str- a String containing a regular expression- Returns:
- a
Regexforstr - Throws:
RegexSyntaxException- ifstris not a valid regular expression
-
-