com.atlassian.jira.util
Class RegexpUtils

java.lang.Object
  extended bycom.atlassian.jira.util.RegexpUtils

public class RegexpUtils
extends java.lang.Object


Constructor Summary
RegexpUtils()
           
 
Method Summary
static java.lang.String replaceAll(java.lang.String str, java.lang.String regex, java.lang.String replacement)
          Equivalent of JDK 1.4's String.replaceAll(String regex, String replacement), usable in JDK 1.3
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexpUtils

public RegexpUtils()
Method Detail

replaceAll

public static java.lang.String replaceAll(java.lang.String str,
                                          java.lang.String regex,
                                          java.lang.String replacement)
Equivalent of JDK 1.4's String.replaceAll(String regex, String replacement), usable in JDK 1.3

Parameters:
str - The string to apply operations to
regex - The regex that str should match
replacement - String to replace matched string with (using $1, $2 etc for substitutions).
Returns:
A modified version of str, or null if the regexp was invalid


Copyright © 2002-2005 Atlassian. All Rights Reserved.