文档介绍:Regular Expression
Pocket Reference
SECOND EDITION
Regular Expression
Pocket Reference
Tony Stubblebine
Beijing • Cambridge • Farnham • Köln • Paris • Sebastopol • Taipei • Tokyo
Regular Expression Pocket Reference, Second Edition
by Tony Stubblebine
Copyright © 2007, 2003 Tony Stubblebine. All rights reserved. Portions of
this book are based on Mastering Regular Expressions, by Jeffrey E. F. Friedl,
Copyright © 2006, 2002, 1997 O’Reilly Media, Inc.
Printed in Canada.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North,
Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales
promotional use. Online editions are also available for most titles
(safari.). For more information, contact our corporate/
institutional sales department: (800) 998-9938 or ******@.
Editor: Andy Oram Indexer: Johnna VanHoose Dinse
Production Editor: SumitaMukherji Cover Designer: Karen Montgomery
Copyeditor: Genevieve d’Entremont Interior Designer: David Futato
Printing History:
August 2003: First Edition.
July 2007: Second Edition.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are
registered trademarks of O’Reilly Media, Inc. The Pocket Reference series
designations, Regular Expression Pocket Reference, the image of owls, and
related trade dress are trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish
their products are claimed as trademarks. Where those designations appear
in this book, and O’Reilly Media, Inc. was aware of a trademark claim, the
designations have been printed in caps or initial caps.
Java™ is a trademark of Sun Microsystems, Inc. Microsoft Explorer
and .NET are registered trademarks of Microsoft Corporation. Spider-Man
is a registered trademark of Marvel Enterprises, Inc.
While every precaution has been taken in the preparation of this book, the
publisher and author assume no responsibility for errors or