|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jext.search.RESearchMatcher
public class RESearchMatcher
A regular expression string matcher.
Field Summary | |
---|---|
static gnu.regexp.RESyntax |
RE_SYNTAX_JEXT
Perl5 syntax with character classes enabled. |
Constructor Summary | |
---|---|
RESearchMatcher(java.lang.String search,
java.lang.String replace,
boolean ignoreCase,
boolean script,
java.lang.String pythonScript)
Creates a new regular expression string matcher. |
Method Summary | |
---|---|
int[] |
nextMatch(javax.swing.text.Segment text)
Returns the offset of the first match of the specified text within this matcher. |
java.lang.String |
substitute(java.lang.String text)
Returns the specified text, with any substitution specified within this matcher performed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final gnu.regexp.RESyntax RE_SYNTAX_JEXT
Constructor Detail |
---|
public RESearchMatcher(java.lang.String search, java.lang.String replace, boolean ignoreCase, boolean script, java.lang.String pythonScript) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public int[] nextMatch(javax.swing.text.Segment text)
nextMatch
in interface SearchMatcher
text
- The text to search in
public java.lang.String substitute(java.lang.String text) throws java.lang.Exception
substitute
in interface SearchMatcher
text
- The text
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |