接口 | 描述 |
---|---|
MatchResult |
匹配操作的结果。
|
类 | 描述 |
---|---|
Matcher |
执行匹配操作在一个
character sequence通过解释
Pattern 发动机。
|
Pattern |
正则表达式的编译表示。
|
异常 | 描述 |
---|---|
PatternSyntaxException |
在正则表达式模式中显示的语法错误时,未经检查的异常抛出。
|
该Pattern
类的实例代表一个正则表达式是一个语法类似于Perl字符串形式指定。
该Matcher
类的实例被用来匹配字符序列对一个给定的模式。输入是通过为CharSequence
接口支持匹配对字符从各种输入源提供的匹配。
除非另有说明,通过null争论在这个包中的任何类或接口的方法会导致一个NullPointerException
被。
一个优秀的教程和正则表达式是Mastering Regular Expressions, Jeffrey E. F. Friedl, O'Reilly and Associates, 1997.概述
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.