Press releases

New Edition of "Mastering Regular Expressions" Covers Regex Use in Perl, Java, VB.NET, and C#

Press release: July 22, 2002

Sebastopol, CA--Regular expressions are an extremely powerful tool for manipulating text and data. They've spread like wildfire in recent years; regular expressions are now offered as standard features in Perl, Java, VB.NET, and C# (and any language using the .NET Framework). If you don't use them yet, O'Reilly's new edition of Mastering Regular Expressions (Friedl, $39.95) might be well worth a look.

"When the first edition of 'Mastering Regular Expressions' came out, it became an instant hit," says O'Reilly editor Andy Oram. "The Perl community (where regular expressions had taken hold most strongly at the time) treated Friedl as a hero. His talk at the first O'Reilly Perl Conference filled a large hall right up to the back doors. We sold out of all copies of his book at the conference. Not only Friedl's book but regular expressions themselves have marched to commanding heights that no other language can point to. Originally marginal outside of Perl and a few old Unix tools, regular expressions now appear as standard offerings in virtually every modern language--including the .NET framework, Java, Python, and PHP--and turn up as conveniences in major utilities such as the Apache web server, the MySQL database engine, and the Postfix and Exim mail transfer agents."

In spite of their wide availability, flexibility, and unparalleled power, regular expressions are frequently underutilized. Regular expressions allow you to code complex and subtle text processing that you never imagined could be automated.

Jeffrey Friedl's "Mastering Regular Expressions" shows exactly how to use a regular expression to describe and parse text. Once you've mastered regular expressions, they'll become an invaluable part of your toolkit. You'll wonder how you ever got by without them. If you already use regular expressions, you'll appreciate Friedl's unprecedented detail and breadth of coverage.

Although the new edition of "Mastering Regular Expressions" still boasts the lucid, entertaining tone that made a complex, dry topic crystal-clear to thousands of programmers, it has been thoroughly updated to include all the new features of Perl, as well as several other languages, including: Java, Python, JavaScript, Visual Basic, and .NET. Sprinkled with solutions to complex real-world problems, "Mastering Regular Expressions" offers a wealth of information that you can put to immediate use. If you think you already know all you need to know about regular expressions, this book is an eye-opener.

What critics said about the first edition:

"There's no better resource than Jeffrey Friedl's 'Mastering Regular Expressions'--a great source of sample expressions and detailed explanations of how regular expressions work their magic."
--Jason Snell, MacWorld

"This book is important because regex is so intimidating, and Friedl makes it much easier to understand. Many programmers don't use the regex available in their development tools. Chances are, regex will save you a lot of time when you find yourself stuck with a pile of someone else's source code that you need to maintain. If you're just getting started with regex, this book will save you a lot of time (and grief). If you are already using regex, you will extend your ability and understanding."
--Dr. Dobbs Journal

"'Mastering Regular Expressions' is a superior book. Friedl has produced a current, well-written, precise addition to the O'Reilly repertoire, with a volume completely devoted to text and data manipulation...I highly recommend it for anyone and everyone involved with regular expression manipulation."
--Sys Admin Magazine

"A stupendous tour de force of all aspects of pattern matching. With an impeccable eye to the tiniest significant detail, the author covers topics ranging from the subtle differences among NFA, DFA, and POSIX NFA matching behaviors to the practical distinctions of how varying versions of grep, sed, awk, emacs, tcl, Python, and Perl behave. The author at all times connects theory to practical application of this knowledge in daily programming."
--Tom Christiansen

Additional Resources:

Mastering Regular Expressions, 2nd Edition
By Jeffrey E. F. Friedl
ISBN 0-596-00289-0, 484 pages, $39.95 (US) $61.95 (CAN)
1-800-998-9938; 1-707-827-7000

About O’Reilly

For over 40 years, O’Reilly has provided technology and business training, knowledge, and insight to help companies succeed. Our unique network of experts and innovators share their knowledge and expertise through the company’s SaaS-based training and learning platform. O’Reilly delivers highly topical and comprehensive technology and business learning solutions to millions of users across enterprise, consumer, and university channels. For more information, visit

Email a link to this press release