public static class TokenFilter.ReplaceRegex extends TokenFilter.ChainableReaderFilter
description, location, project
Constructor and Description |
---|
TokenFilter.ReplaceRegex() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
filter(java.lang.String line)
filter and/of modify a string
|
void |
setFlags(java.lang.String flags) |
void |
setPattern(java.lang.String from)
the from attribute
|
void |
setReplace(java.lang.String to)
the to attribute
|
chain, setByLine
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public void setPattern(java.lang.String from)
from
- the regex stringpublic 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 line)
TokenFilter.Filter
line
- the string to modify