See:
Description
Interface Summary | |
---|---|
MatchResult | The result of a match operation. |
Class Summary | |
---|---|
Matcher | An engine that performs match operations on a character sequence by interpreting a Pattern . |
Pattern | A compiled representation of a regular expression. |
Exception Summary | |
---|---|
PatternSyntaxException | Unchecked exception thrown to indicate a syntax error in a regular-expression pattern. |
Classes for matching character sequences against patterns specified by regularexpressions.
An instance of the
Pattern
class represents aregular expression that is specified in string form in a syntax
similar
similiar
tothat used by Perl.
Instances of the Matcher class are used to matchcharacter sequences against a given pattern. Input is provided to matchers viathe CharSequence interface in order to support matchingagainst characters from a wide variety of input sources.
Unless otherwise noted, passing a
null
argument to a methodin any class or interface in this package will cause a
NullPointerException
to be thrown.
An excellent tutorial and overview of regular expressions is