-
public interface ReplaceableInterface used to support find and replacement feature
-
-
Method Summary
Modifier and Type Method Description abstract voidreplaceFirstMatch(String regex, String replacement)Replace the first string that matched by the regex with new string abstract voidreplaceAllMatches(String regex, String replacement)Replace all strings that matched by the regex with new string -
-
Method Detail
-
replaceFirstMatch
abstract void replaceFirstMatch(String regex, String replacement)
Replace the first string that matched by the regex with new string
- Parameters:
regex- regex Regex used to find the first target stringreplacement- Text to replace that matched string by it
-
replaceAllMatches
abstract void replaceAllMatches(String regex, String replacement)
Replace all strings that matched by the regex with new string
- Parameters:
regex- Regex used to find the target stringreplacement- Text to replace that matched string by it
-
-
-
-