| Package | Description |
|---|---|
| com.nobigsoftware.dfalex |
| Modifier and Type | Field and Description |
|---|---|
static StringReplacement |
StringReplacements.DELETE
Replacement that deletes the matching substring
|
static StringReplacement |
StringReplacements.IGNORE
Replacement that leaves the matching substring unmodified
|
static StringReplacement |
StringReplacements.SPACE_OR_NEWLINE
Replacement that converts the matching substring to a single space (if it does not contain any newlines) or a
newline (if it does contain a newline)
|
static StringReplacement |
StringReplacements.TOLOWER
Replacement that converts the matching substring to lower case
|
static StringReplacement |
StringReplacements.TOUPPER
Replacement that converts the matching substring to upper case
|
| Modifier and Type | Method and Description |
|---|---|
static StringReplacement |
StringReplacements.string(java.lang.CharSequence str)
Make a replacement that replaces matching substrings with a given string
|
static StringReplacement |
StringReplacements.surround(java.lang.CharSequence prefix,
StringReplacement replacement,
java.lang.CharSequence suffix)
Make a replacement that surrounds matches with a given prefix and suffix, and applies the given replacer
to the match itself
|
| Modifier and Type | Method and Description |
|---|---|
SearchAndReplaceBuilder |
SearchAndReplaceBuilder.addReplacement(Matchable pat,
StringReplacement replacement)
Add a dynamic search + replacement.
|
static StringReplacement |
StringReplacements.surround(java.lang.CharSequence prefix,
StringReplacement replacement,
java.lang.CharSequence suffix)
Make a replacement that surrounds matches with a given prefix and suffix, and applies the given replacer
to the match itself
|