public abstract class RegexFilter extends FilterSupport
| Modifier and Type | Field and Description |
|---|---|
static boolean |
MULTILINE |
protected List |
pattern |
static boolean |
SINGLELINE |
protected List |
substitute |
initialContext| Constructor and Description |
|---|
RegexFilter() |
RegexFilter(String regex,
String substitute)
create a new regular expression that takes input as multiple lines
|
RegexFilter(String regex,
String substitute,
boolean multiline)
create a new regular expression and set
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRegex(String regex,
String substitute) |
void |
addRegex(String regex,
String substitute,
boolean multiline) |
void |
clearRegex() |
abstract String |
filter(String input,
FilterContext context) |
before, getDescription, replaces, setInitialContextprotected List pattern
protected List substitute
public static final boolean SINGLELINE
public static final boolean MULTILINE
Copyright © 2003–2018 Sakai Project. All rights reserved.