软件包 | 描述 |
---|---|
java.util |
包含集合框架、遗留的集合类、事件模型、日期和时间的设施、国际化和各种实用工具类(一个字符串标记,一个随机数发生器,和一位阵列)。
|
java.util.regex |
用于对正则表达式指定的模式匹配字符序列的类。
|
Modifier and Type | Method and Description |
---|---|
MatchResult |
Scanner.match()
返回由该扫描仪执行的最后一次扫描操作的匹配结果。
|
Modifier and Type | Class and Description |
---|---|
class |
Matcher
执行匹配操作在一个
character sequence通过解释
Pattern 发动机。
|
Modifier and Type | Method and Description |
---|---|
MatchResult |
Matcher.toMatchResult()
作为一个
MatchResult 返回该匹配的匹配状态。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.