public static class TokenFilter.ContainsRegex extends TokenFilter.ChainableReaderFilter
description, location, project
Constructor and Description |
---|
TokenFilter.ContainsRegex() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
filter(java.lang.String string)
apply regex and substitution on a string
|
void |
setFlags(java.lang.String flags) |
void |
setPattern(java.lang.String from) |
void |
setReplace(java.lang.String to) |
chain, setByLine
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public void setPattern(java.lang.String from)
from
- the regex patternpublic void setReplace(java.lang.String to)
to
- the replacement stringpublic void setFlags(java.lang.String flags)
flags
- the regex flagspublic java.lang.String filter(java.lang.String string)
string
- the string to apply filter on