By Jeffrey E.F. Friedl
Publisher: O'Reilly Media
Final Release Date: July 2002
Pages: 496
Regular expressions are an extremely powerful tool for manipulating text and data.They have spread like wildfire in recent years, now offered as standard features inPerl, Java, VB.NET and C# (and any language using the .NET Framework), PHP, Python,Ruby, Tcl, MySQL, awk, Emacs, and many other popular tools and languages. Ifyou don't use regular expressions yet, you will discover in this book a whole newworld of mastery over your data. If you already use them, you'll appreciate thisbook's unprecedented detail and breadth of coverage. If you think you know all youneed to know about regular expressions, this book is a stunning eye-opener. In spitetheir wide availability, flexibility, and unparalleled power, regular expressions arefrequently underutilized. Regular expressions allow you to code complex and subtletext processing that you never imagined could be automated. Regular expressions cansave you time and aggravation. They can be used to craft elegant solutions to a widerange of problems. A command of regular expressions is an invaluable skill. Yet whatis power in the hands of an expert can be fraught with peril for the unwary.
Mastering Regular Expressions will help you navigate the minefield to becomingan expert. Once you've mastered regular expressions, they'll become an invaluablepart of your toolkit. You will wonder how you ever got by without them. MasteringRegular Expressions, Second Edition has been thoroughly updated to include allthe new features of Perl 5.8, as well as several other languages, including Java,VB.NET, C#, Python, JavaScript, Tcl, and Ruby. Written in the lucid, entertainingtone that made a complex, dry topic crystal-clear to thousands of programmers, andsprinkled with solutions to complex real-world problems, Mastering RegularExpressions offers a wealth information that you can put to immediate use. Topicsinclude:
- A comparison of features among different versions of many languagesand tools
- How the regular expression engine works
- Optimization (major savings available here!)
- Matching just what you want, but not what you don't want
- Sections and chapters on individual languages
|
-
Chapter 1 Introduction to Regular Expressions -
Solving Real Problems -
Regular Expressions as a Language -
The Regular-Expression Frame of Mind -
Egrep Metacharacters -
Expanding the Foundation -
Personal Glimpses -
Quiz Answer -
Chapter 2 Extended Introductory Examples -
About the Examples -
Matching Text with Regular Expressions -
Modifying Text with Regular Expressions -
Quiz Answers -
Chapter 3 Overview of Regular Expression Features and Flavors -
A Casual Stroll Across the Regex Landscape -
Care and Handling of Regular Expressions -
Strings, Character Encodings, and Modes -
Common Metacharacters and Features -
Guide to the Advanced Chapters -
Chapter 4 The Mechanics of Expression Processing -
Start Your Engines! -
Match Basics -
Regex-Directed Versus Text-Directed -
Backtracking -
More About Greediness and Backtracking -
NFA, DFA, and POSIX -
Summary -
Quiz Answers -
Chapter 5 Practical Regex Techniques -
Regex Balancing Act -
A Few Short Examples -
HTML-Related Examples -
Extended Examples -
Chapter 6 Crafting an Efficient Expression -
A Sobering Example -
A Global View of Backtracking -
Benchmarking -
Common Optimizations -
Techniques for Faster Expressions -
Unrolling the Loop -
The Freeflowing Regex -
In Summary: Think! -
Quize Answers -
Chapter 7 Perl -
Regular Expressions as a Language Component -
Perl's Regex Flavor -
Regex-Related Perlisms -
The qr/···/ Operator and Regex Objects -
The Match Operator -
The Substitution Operator -
The Split Operator -
Fun with Perl Enhancements -
Perl Efficiency Issues -
Final Comments -
Chapter 8 Java -
Judging a Regex Package -
Object Models -
Packages, Packages, Packages -
Sun's Regex Package -
A Quick Look at Jakarta-ORO -
Chapter 9 .NET -
.NET's Regex Flavor -
Using .NET Regular Expressions -
Core Object Details -
Static "Convenience" Functions -
Support Functions -
Advanced .NET -
About the Author -
Colophon |
- Title:
- Mastering Regular Expressions, 2nd Edition
- By:
- Jeffrey E.F. Friedl
- Publisher:
- O'Reilly Media
- Formats:
-
- Print:
- July 2002
- Pages:
- 496
- Print ISBN:
- 978-0-596-00289-3
- | ISBN 10:
- 0-596-00289-0
|
Colophon Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animals on the cover of Mastering Regular Expressions, Second Edition are owls. There are two families and approximately 180 speices of these birds of prey distributed throughout the world, with the exception of Antarctica. Most species of owls are nocturnal hunters, feeding entirely on live animals, ranging in size from insects to hares.Because they have little ablility to move their large, forward-facing eyes, owls must move their entire heads in order to look around. They can roate their heads up to 270 degrees, and some can turn their heads completely upside down. Among the physical adaptations that enhance owls' effectiveness as hunters is their extreme sensitivity to the frequency and direction of sounds. Many species of owl have asymmetrical ear placement, which enables them to more easiliy locate their prey in dim or dark light. Once they've pinpointed the location, the owl's soft feathers allow them to fly noiselessly and thus to surprise their prey.While people have traditionally anthropomorphized birds of prey as evil and coldblooded creatures, owls are viewed differently in human mythology. Perhaps because their large eyes give them the appearance of intellectual depth, owls have been portrayed in folklore through the ages as wise creatures. Jeffrey E. F. Friedl was the production editor for Mastering Regular Expressions, Second Edition. Sarah Jane Shangraw was the proofreader. Jane Ellin provided quality control.Edie Freedman designed the cover of this book. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.The text was prepared by Jeffrey Friedl in a hybrid markup of his own design, mixing SGML, raw troff, raw PostScript, and his own markup. A home-grown filter translated the latter to the other, lower-level markups, the result of which was processed by a locally-modified version of James Clark's g gtroff, producing camera-ready PostScript for O'Reilly.Ken Lunde of Adobe Systems provided special font and typsetting help, including custom-designed characters and Japanese characters from Adobe System's Heisei Mincho W3 typeface.The text and heading fonts are ITC Garamond Light and Garamond Book; the code font is Constant Willison. The illustrations that appear in the book were produced by Chris Reilly, Robert Romano, and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. |
|
Table of Contents
|
Product Details
|
Colophon
|
 |
|
 |
|
|
|
Recommended for You
|
Recently Viewed
|
 |
|
By Sriram Srinivasan
August 1997
By Tom Phoenix, Randal L. Schwartz
July 2001
By Nathan Patwardhan, Ellen Siever, Stephen Spainhour
June 2002
Ebook
:
$38.99
Print & Ebook
:
$49.49
Print
:
$44.99
|
Customer Reviews
6/6/2010 (1 of 2 customers found this review helpful) - Accurate
- Concise
- Easy to understand
- Well-written
11/18/2005 (0 of 1 customers found this review helpful) By Anonymous from Undisclosed 7/10/2004 5.0From zero to complete in one day! By Christopher Nurse from Undisclosed 6/28/2004 (2 of 3 customers found this review helpful) By lucas_gonze from Undisclosed 2/6/2004 5.0Mastering Regular Expressions, 2nd Edition Review By George Woolley of Oakland.pm from Undisclosed 10/13/2002 (3 of 3 customers found this review helpful) 4.0Mastering Regular Expressions, 2nd Edition Review By Larry Bezeau from Undisclosed
|
|
|