| 程序包 | 说明 |
|---|---|
| org.apache.oro.text.perl |
This package used to be the PerlTools library and adds Perl5
regular expression syntactic sugar built on top of the
org.apache.oro.text.regex Perl5 regular expression classes. |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
Perl5Util.match(String pattern,
char[] input)
Searches for the first pattern match somewhere in a character array
taking a pattern specified in Perl5 native format:
[m]/pattern/[i][m][s][x]
The
m prefix is optional and the meaning of the optional
trailing options are:
|
boolean |
Perl5Util.match(String pattern,
PatternMatcherInput input)
Searches for the next pattern match somewhere in a
org.apache.oro.text.regex.PatternMatcherInput instance, taking
a pattern specified in Perl5 native format:
[m]/pattern/[i][m][s][x]
The
m prefix is optional and the meaning of the optional
trailing options are:
|
boolean |
Perl5Util.match(String pattern,
String input)
Searches for the first pattern match in a String taking
a pattern specified in Perl5 native format:
[m]/pattern/[i][m][s][x]
The
m prefix is optional and the meaning of the optional
trailing options are:
|
void |
Perl5Util.split(Collection results,
String input)
Splits input in the default Perl manner, splitting on all whitespace.
|
void |
Perl5Util.split(Collection results,
String pattern,
String input)
This method is identical to calling:
split(results, pattern, input, SPLIT_ALL);
|
void |
Perl5Util.split(Collection results,
String pattern,
String input,
int limit)
Splits a String into strings that are appended to a List, but no more
than a specified limit.
|
Vector |
Perl5Util.split(String input)
已过时。
Use
Perl5Util.split(Collection results, String input) instead. |
Vector |
Perl5Util.split(String pattern,
String input)
已过时。
|
Vector |
Perl5Util.split(String pattern,
String input,
int limit)
|
int |
Perl5Util.substitute(StringBuffer result,
String expression,
String input)
Substitutes a pattern in a given input with a replacement string.
|
String |
Perl5Util.substitute(String expression,
String input)
Substitutes a pattern in a given input with a replacement string.
|
Copyright © 2023. All rights reserved.