Package org.approvej.scrub
Class RegexScrubber
java.lang.Object
org.approvej.scrub.RegexScrubber
- Direct Known Subclasses:
DateTimeScrubber
-
Method Summary
Modifier and TypeMethodDescriptionreplacement(String staticReplacement) Set the replacementFunctionalways returning the given staticReplacement.replacement(Function<Integer, Object> replacement) Set the replacementFunctionto be used.
-
Method Details
-
apply
-
replacement
Set the replacementFunctionto be used.- Parameters:
replacement- aFunctionthat receives the finding index and returns the replacement string- Returns:
- this
-
replacement
Set the replacementFunctionalways returning the given staticReplacement.- Parameters:
staticReplacement- the static replacementString- Returns:
- this
-