Package org.approvej.scrub
Class RegexScrubber
java.lang.Object
org.approvej.scrub.RegexScrubber
-
Method Summary
Modifier and TypeMethodDescriptionreplacement
(String staticReplacement) Set the replacementFunction
always returning the given staticReplacement.replacement
(Function<Integer, Object> replacement) Set the replacementFunction
to be used.
-
Method Details
-
apply
-
replacement
Set the replacementFunction
to be used.- Parameters:
replacement
- aFunction
that receives the finding index and returns the replacement string- Returns:
- this
-
replacement
Set the replacementFunction
always returning the given staticReplacement.- Parameters:
staticReplacement
- the static replacementString
- Returns:
- this
-