1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
5 Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved.
6 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8 This code is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License version 2 only, as
10 published by the Free Software Foundation. Oracle designates this
11 particular file as subject to the "Classpath" exception as provided
12 by Oracle in the LICENSE file that accompanied this code.
14 This code is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 version 2 for more details (a copy is included in the LICENSE file that
18 accompanied this code).
20 You should have received a copy of the GNU General Public License version
21 2 along with this work; if not, write to the Free Software Foundation,
22 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
24 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
25 or visit www.oracle.com if you need additional information or have any
30 <body bgcolor="white">
32 Classes for matching character sequences against patterns specified by regular
35 <p> An instance of the {@link java.util.regex.Pattern} class represents a
36 regular expression that is specified in string form in a syntax similar to
39 <p> Instances of the {@link java.util.regex.Matcher} class are used to match
40 character sequences against a given pattern. Input is provided to matchers via
41 the {@link java.lang.CharSequence} interface in order to support matching
42 against characters from a wide variety of input sources. </p>
44 <p> Unless otherwise noted, passing a <tt>null</tt> argument to a method
45 in any class or interface in this package will cause a
46 {@link java.lang.NullPointerException NullPointerException} to be thrown.
48 <h2>Related Documentation</h2>
50 <p> An excellent tutorial and overview of regular expressions is <a
51 href="http://www.oreilly.com/catalog/regex/"><i>Mastering Regular
52 Expressions</i>, Jeffrey E. F. Friedl, O'Reilly and Associates, 1997.</a> </p>
55 For overviews, tutorials, examples, guides, and tool documentation, please see:
57 <li><a href="">##### REFER TO NON-SPEC DOCUMENTATION HERE #####</a>
62 @author Mike McCloskey