Class FindAndReplace

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

public final class FindAndReplace extends Object
Description of the Class
Author:
ryandear
  • Constructor Details

    • FindAndReplace

      public FindAndReplace()
  • Method Details

    • 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