| Package | Description |
|---|---|
| regexodus |
| Modifier and Type | Method and Description |
|---|---|
Matcher |
Pattern.matcher()
Returns a target-less matcher.
|
Matcher |
Pattern.matcher(char[] data,
int start,
int end)
Returns a matcher for a specified region.
|
Matcher |
Pattern.matcher(CharSequence s)
Returns a matcher for a specified string.
|
Matcher |
Pattern.matcher(MatchResult res,
int groupId)
Returns a matcher for a match result (in a performance-friendly way).
|
Matcher |
Pattern.matcher(MatchResult res,
String groupName)
Just as above, yet with symbolic group name.
|
Matcher |
Pattern.matcher(Reader text,
int length)
Returns a matcher taking a text stream as target.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
Replacer.replace(Matcher m,
Substitution substitution,
TextBuffer dest)
Replaces all occurrences of a matcher's pattern in a matcher's target
by a given substitution appending the result to a buffer.
The substitution starts from current matcher's position, current match not included. |
static int |
Replacer.replace(Matcher m,
Substitution substitution,
TextBuffer dest,
int count)
Replaces the first n occurrences of a matcher's pattern, where n is equal to count,
in a matcher's target by a given substitution, appending the result to a buffer.
|
void |
Matcher.setTarget(Matcher m,
int groupId)
This method allows to efficiently pass data between matchers.
|
Copyright © 2016. All rights reserved.