cynosurex.util
Class RegularExpression
java.lang.Object
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.
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 |
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 |
RegularExpression
public RegularExpression()
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".