| 程序包 | 说明 |
|---|---|
| org.apache.oro.text.regex |
This package used to be the OROMatcher library and provides both
generic regular expression interfaces and Perl5 regular expression
compatible implementation classes.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
Perl5Substitution
Perl5Substitution implements a Substitution consisting of a
literal string, but allowing Perl5 variable interpolation referencing
saved groups in a match.
|
class |
StringSubstitution
StringSubstitution implements a Substitution consisting of a simple
literal string.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
Util.substitute(PatternMatcher matcher,
Pattern pattern,
Substitution sub,
String input)
Searches a string for a pattern and substitutes only the first
occurence of the pattern.
|
static String |
Util.substitute(PatternMatcher matcher,
Pattern pattern,
Substitution sub,
String input,
int numSubs)
Searches a string for a pattern and replaces the first occurrences
of the pattern with a Substitution up to the number of
substitutions specified by the numSubs parameter.
|
static int |
Util.substitute(StringBuffer result,
PatternMatcher matcher,
Pattern pattern,
Substitution sub,
PatternMatcherInput input,
int numSubs)
Searches a string for a pattern and replaces the first occurrences
of the pattern with a Substitution up to the number of
substitutions specified by the numSubs parameter.
|
static int |
Util.substitute(StringBuffer result,
PatternMatcher matcher,
Pattern pattern,
Substitution sub,
String input,
int numSubs)
Searches a string for a pattern and replaces the first occurrences
of the pattern with a Substitution up to the number of
substitutions specified by the numSubs parameter.
|
Copyright © 2022. All rights reserved.