|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jasp.regexp.RegExp
Provides simple regular expression support.
Constructor Summary | |
RegExp()
|
Method Summary | |
MatchCollection |
Execute(java.lang.String s)
Executes a regular expression search against a specified string. |
boolean |
getGlobal()
Returns a Boolean value that indicates if a pattern should match all occurrences in an entire search string or just the first one. |
java.lang.String |
getPattern()
Returns the regular expression pattern. |
java.lang.String |
Replace(java.lang.String s1,
java.lang.String s2)
Replaces text found in a regular expression search. |
void |
setGlobal(boolean global)
Sets a Boolean value that indicates if a pattern should match all occurrences in an entire search string or just the first one. |
void |
setIgnoreCase(boolean IgnoreCase)
The value of the IgnoreCase property is False if the search is case-sensitive, True if it is not. |
void |
setPattern(java.lang.String str)
Sets the regular expression pattern being searched for. |
boolean |
Test(java.lang.String s1)
Executes a regular expression search against a specified string and returns a Boolean value that indicates if a pattern match was found. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RegExp()
Method Detail |
public void setPattern(java.lang.String str) throws java.lang.Exception
str
- the regular expression patternpublic java.lang.String getPattern()
public void setIgnoreCase(boolean IgnoreCase)
public void setGlobal(boolean global)
public boolean getGlobal()
public boolean Test(java.lang.String s1)
s1
- The text string upon which the regular expression is
executed.public java.lang.String Replace(java.lang.String s1, java.lang.String s2)
s1
- is the text string in which the text replacement is
to occur.s2
- is the replacement text string.public MatchCollection Execute(java.lang.String s)
s
- The text string upon which the regular expression is executed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |