public class RESearchMatcher extends java.lang.Object implements SearchMatcher
Modifier and Type | Field and Description |
---|---|
static gnu.regexp.RESyntax |
RE_SYNTAX_JEXT
Perl5 syntax with character classes enabled.
|
Constructor and Description |
---|
RESearchMatcher(java.lang.String search,
java.lang.String replace,
boolean ignoreCase,
boolean script,
java.lang.String pythonScript)
Creates a new regular expression string matcher.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final gnu.regexp.RESyntax RE_SYNTAX_JEXT
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
public int[] nextMatch(javax.swing.text.Segment text)
nextMatch
in interface SearchMatcher
text
- The text to search inpublic java.lang.String substitute(java.lang.String text) throws java.lang.Exception
substitute
in interface SearchMatcher
text
- The textjava.lang.Exception
Copyright ? 2002 Romain Guy.