RegexConversion#revert(String) implements the same behavior of RegexConversion#execute(String). Null inputs produce null outputs.
| Access | Constructor and Description |
|---|---|
| public | RegexConversion(String
the regular expression used to match contents of a given input String replaceRegex, String the replacement content to replace any contents matched by the given regular expression replacement)Creates a conversion that matches contents identified by the given regular expression and replaces them by the given replacement String. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: The String resulting from the content replacementThe input to have contents matched by the regular expression and replaced input)Implements com. |
| public String | Returns: The String resulting from the content replacementThe input to have contents matched by the regular expression and replaced input)Implements com. |
| replacement | back to summary |
|---|---|
| private final String replacement | |
| replaceRegex | back to summary |
|---|---|
| private final String replaceRegex | |
| RegexConversion | back to summary |
|---|---|
| public RegexConversion(String replaceRegex, String replacement) Creates a conversion that matches contents identified by the given regular expression and replaces them by the given replacement String. | |
| execute | back to summary |
|---|---|
| public String execute(String input) Implements com. Executes the regular expression provided in the constructor of this class against the input and replaces any matched content with the replacement String.
Equivalent to | |
| revert | back to summary |
|---|---|
| public String revert(String input) Implements com. Executes the regular expression provided in the constructor of this class against the input and replaces any matched content with the replacement String.
Equivalent to | |