org.dlese.dpc.util.strings
Class FindAndReplace
java.lang.Object
org.dlese.dpc.util.strings.FindAndReplace
public final class FindAndReplace
- extends Object
Description of the Class
- Author:
- ryandear
Method Summary |
static String |
replace(String in,
String find,
String replace,
boolean caseInsensitive)
Given an input string, replace all occurences of a string sequence (reg. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FindAndReplace
public FindAndReplace()
replace
public static String replace(String in,
String find,
String replace,
boolean caseInsensitive)
- Given an input string, replace all occurences of a string sequence (reg.
ex.) with a given replacement string.
- Parameters:
in
- input stringfind
- regular expression to match againstreplace
- string to replace matches withcaseInsensitive
- should matching be case insensitive?
- Returns:
- the newly altered string public static String