public class JavaRegexEngine extends Object implements RegexEngine
Pattern
to match regexConstructor and Description |
---|
JavaRegexEngine() |
public JavaRegexEngine()
public void add(String regex)
add
in interface RegexEngine
regex
- add this pattern to the list of patterns to matchpublic boolean matches(String str)
matches
in interface RegexEngine
str
- to match against