public class RegexReplacementProcessor extends java.lang.Object
IRegexReplacements to
a string.| Constructor and Description |
|---|
RegexReplacementProcessor(java.util.List<IRegexReplacement> expressions)
Create a new replacement processor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
process(java.lang.String text)
Apply replacements to a string.
|
public RegexReplacementProcessor(java.util.List<IRegexReplacement> expressions)
public java.lang.String process(java.lang.String text) throws java.util.regex.PatternSyntaxException
java.util.regex.PatternSyntaxException - unfortunately method
Matcher.replaceAll(java.lang.String) throws an
IndexOutOfBoundsException if a non-existent capturing
group is referenced. This method converts this exception to a
PatternSyntaxException.