| 程序包 | 说明 |
|---|---|
| com.jn.langx.util.regexp | |
| com.jn.langx.util.regexp.jdk | |
| com.jn.langx.util.regexp.named |
JDK中的Regexp 从 JDK7 开始,支持 named capturing group,之前是不支持的,
该package 用于为 JDK5,JDK6扩展出支持 named capturing group
|
| 限定符和类型 | 方法和说明 |
|---|---|
RegexpMatcher |
RegexpMatcher.appendReplacement(StringBuffer b,
String replacement)
对匹配到的部分,进行文本替换
|
RegexpMatcher |
Regexp.matcher(CharSequence text)
对指定的文本进行匹配
|
RegexpMatcher |
RegexpMatcher.reset()
Resets this matcher.
|
| 限定符和类型 | 方法和说明 |
|---|---|
RegexpMatcher |
JdkRegexp.matcher(CharSequence input)
对指定的文本进行匹配
|
| 限定符和类型 | 方法和说明 |
|---|---|
RegexpMatcher |
NamedRegexp.matcher(CharSequence input)
Creates a matcher that will match the given input against this pattern.
|
Copyright © 2022. All rights reserved.