public class FilterRegex
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
logger
The logger.
|
private java.lang.String |
regex
The regex.
|
Constructor and Description |
---|
FilterRegex()
Instantiates a new filter regex.
|
FilterRegex(java.lang.String regex1)
Instantiates a new filter regex.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
filter(java.lang.String input) |
java.lang.String |
getRegex()
Gets the regex.
|
void |
setRegex(java.lang.String regex)
Sets the regex.
|
static java.lang.String |
stringMatcherByPattern(java.lang.String input,
java.lang.String patternStr)
this remove the linebreak.
|
private static org.slf4j.Logger logger
private java.lang.String regex
public FilterRegex()
public FilterRegex(java.lang.String regex1)
regex1
- the regex1public java.lang.String filter(java.lang.String input)
public static java.lang.String stringMatcherByPattern(java.lang.String input, java.lang.String patternStr)
input
- the inputpatternStr
- the pattern strpublic java.lang.String getRegex()
public void setRegex(java.lang.String regex)
regex
- the new regex