All about Java String.
Pattern class instance presents the regular expression which has been specified in string form, in syntax, same as used by Perl.
Regular expression shall be compiling first to the Pattern class instance. Matcher object is created by ther resulting pattern, which matches with the sequence of the arbitrary character. Similar patterns are shared by various matchers as it is stateless.
Given regular expression is compiled by the compile method into a pattern. After this,