cynosurex.util
Class RegularExpression

java.lang.Object
  extended by cynosurex.util.RegularExpression
All Implemented Interfaces:
cynosurex.internal.AuthorCommon, cynosurex.internal.CommonInterface, cynosurex.internal.CompanyCommon

public class RegularExpression
extends java.lang.Object
implements cynosurex.internal.CommonInterface

RegularExpression class provide convenient methods that makes manupulating string with regular expression more intuitive.


Field Summary
 
Fields inherited from interface cynosurex.internal.CommonInterface
copyright, copyrightYears, notice, program, version
 
Fields inherited from interface cynosurex.internal.AuthorCommon
author, copyrightSymbol, noticeMsg, rights
 
Fields inherited from interface cynosurex.internal.CompanyCommon
company, email, website
 
Constructor Summary
RegularExpression()
           
 
Method Summary
static java.lang.String replaceAll(java.lang.String input, java.lang.String regEx, java.lang.String replacement)
          This method replaces all "regEx" occurrances with the "replacement".
static java.lang.String replaceFirst(java.lang.String input, java.lang.String regEx, java.lang.String replacement)
          This method replaces first "regEx" occurrances with the "replacement".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegularExpression

public RegularExpression()
Method Detail

replaceAll

public static java.lang.String replaceAll(java.lang.String input,
                                          java.lang.String regEx,
                                          java.lang.String replacement)
This method replaces all "regEx" occurrances with the "replacement".


replaceFirst

public static java.lang.String replaceFirst(java.lang.String input,
                                            java.lang.String regEx,
                                            java.lang.String replacement)
This method replaces first "regEx" occurrances with the "replacement".