Sunday, 5 October 2014

java.util.regex package

The java.util.regex package consist of one interface and three classes.

Classes in regex package
Class Description
Pattern Pattern object is a compiled representation of a regular expression. This class provides methods to search for a regular expression in given string.
Matcher A Matcher object is the engine that interprets the pattern and performs match operations against an input string.
PatternSyntaxException It indicates a syntax error in a regular expression pattern.

Interfaces in regex package
Interface Description
MatchResult Interface contains query methods used to determine the results of a match against a regular expression.






Prevoius                                                 Next                                                 Home

No comments:

Post a Comment