public static class PatternModel.AnchoredSearchMode extends PatternModel.RegexCreator
matchRule
Constructor and Description |
---|
AnchoredSearchMode() |
Modifier and Type | Method and Description |
---|---|
String |
createRegEx(String searchExp) |
private boolean |
hasEndAnchor(String str) |
private boolean |
hasStartAnchor(String str) |
boolean |
isAutoDetect() |
boolean |
isEndAnchored()
returns true if the pattern must match from the beginning of the string,
or false if the pattern can match anywhere in a string.
|
boolean |
isStartAnchored()
returns true if the pattern must match from the beginning of the string,
or false if the pattern can match anywhere in a string.
|
createContainedRegEx, createEndAnchoredRegEx, createEqualsRegEx, createStartsAnchoredRegEx, getDefaultMatchRule, getMatchRule, getMatchRules, setMatchRule
public AnchoredSearchMode()
public boolean isAutoDetect()
isAutoDetect
in class PatternModel.RegexCreator
public String createRegEx(String searchExp)
createRegEx
in class PatternModel.RegexCreator
private boolean hasStartAnchor(String str)
private boolean hasEndAnchor(String str)
public boolean isStartAnchored()
public boolean isEndAnchored()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses