DLESE Tools
v1.6.0

org.dlese.dpc.util.strings
Class FindAndReplace

java.lang.Object
  extended by org.dlese.dpc.util.strings.FindAndReplace

public final class FindAndReplace
extends Object

Description of the Class

Author:
ryandear

Constructor Summary
FindAndReplace()
           
 
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
 

Constructor Detail

FindAndReplace

public FindAndReplace()
Method Detail

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 string
find - regular expression to match against
replace - string to replace matches with
caseInsensitive - should matching be case insensitive?
Returns:
the newly altered string public static String

DLESE Tools
v1.6.0