|
APTCONVERT 1.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RE
An abstraction of a regular expression matcher.
REFactory
Method Summary | |
---|---|
REMatch[] |
getMatch(java.lang.CharSequence input,
int from)
Works like getMatch(String, int) but searches more generic
CharSequence . |
REMatch[] |
getMatch(java.lang.String input,
int from)
Searches the specified string for this regular expression pattern. |
boolean |
search(java.lang.String input)
Searches the specified string for this regular expression pattern. |
Method Detail |
---|
boolean search(java.lang.String input)
input
- the string to search
true
if the pattern is found; false
otherwise
You have to put the pattern between '^' and '$' if you need the string to be matched in its entirety.
REMatch[] getMatch(java.lang.String input, int from)
input
- the string to searchfrom
- the index from which to begin the search
null
otherwise
First REMatch of the returned array contains the text span matched by this pattern in its entirety. Following REMatch, if any, correspond to text spans matched by parenthesized subexpressions of this pattern.
REMatch[] getMatch(java.lang.CharSequence input, int from)
getMatch(String, int)
but searches more generic
CharSequence
.
|
APTCONVERT 1.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |