|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.util.RegexpMatcher
public class RegexpMatcher
Streamlines the interface to ORO by implicitly constructing the necessary compilers and matchers, and by caching compiled patterns.
| Constructor Summary | |
|---|---|
RegexpMatcher()
|
|
| Method Summary | |
|---|---|
void |
clear()
Clears any previously compiled patterns. |
boolean |
contains(String pattern,
String input)
|
String |
getEscapedPatternString(String pattern)
|
RegexpMatch[] |
getMatches(String pattern,
String input)
Given an input string, finds all matches in an input string for the pattern. |
String[] |
getMatches(String pattern,
String input,
int subgroup)
Given an input string, finds all matches in an input string for the pattern. |
boolean |
matches(String pattern,
String input)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegexpMatcher()
| Method Detail |
|---|
public void clear()
public boolean matches(String pattern,
String input)
public boolean contains(String pattern,
String input)
public String getEscapedPatternString(String pattern)
public RegexpMatch[] getMatches(String pattern,
String input)
pattern - the regexp pattern for matchinginput - the string to search for matches within
public String[] getMatches(String pattern,
String input,
int subgroup)
pattern - the regexp pattern for matchinginput - the string to search for matches withinsubgroup - the group (sub-expression) within the pattern to return as a match
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||