Mastering Regular Expressions and over 1.5 million other books are available for Amazon Kindle . Learn more

Trade in Yours
For a £5.46 Gift Card
Trade in
Have one to sell? Sell yours here
Sorry, this item is not available in
Image not available for
Colour:
Image not available

 
Start reading Mastering Regular Expressions on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Mastering Regular Expressions [Paperback]

Jeffrey E.F. Friedl
4.6 out of 5 stars  See all reviews (33 customer reviews)

Available from these sellers.


Formats

Amazon Price New from Used from
Kindle Edition £17.51  
Paperback --  
Paperback, 15 Aug 2006 --  
Trade In this Item for up to £5.46
Trade in Mastering Regular Expressions for an Amazon.co.uk gift card of up to £5.46, which you can then spend on millions of items across the site. Trade-in values may vary (terms apply). Learn more

Book Description

15 Aug 2006 0596528124 978-0596528126 3

Regular expressions are an extremely powerful tool for manipulating text and data. They are now standard features in a wide range of languages and popular tools, including Perl, Python, Ruby, Java, VB.NET and C# (and any language using the .NET Framework), PHP, and MySQL.

If you don't use regular expressions yet, you will discover in this book a whole new world of mastery over your data. If you already use them, you'll appreciate this book's unprecedented detail and breadth of coverage. If you think you know all you need to know about regular expressions, this book is a stunning eye-opener.

As this book shows, a command of regular expressions is an invaluable skill. Regular expressions allow you to code complex and subtle text processing that you never imagined could be automated. Regular expressions can save you time and aggravation. They can be used to craft elegant solutions to a wide range of problems. Once you've mastered regular expressions, they'll become an invaluable part of your toolkit. You will wonder how you ever got by without them.

Yet despite their wide availability, flexibility, and unparalleled power, regular expressions are frequently underutilized. Yet what is 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 becoming an expert and help you optimize your use of regular expressions.

Mastering Regular Expressions, Third Edition, now includes a full chapter devoted to PHP and its powerful and expressive suite of regular expression functions, in addition to enhanced PHP coverage in the central "core" chapters. Furthermore, this edition has been updated throughout to reflect advances in other languages, including expanded in-depth coverage of Sun's java.util.regex package, which has emerged as the standard Java regex implementation.Topics include:

  • A comparison of features among different versions of many languages and 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

Written in the lucid, entertaining tone that makes a complex, dry topic become crystal-clear to programmers, and sprinkled with solutions to complex real-world problems, Mastering Regular Expressions, Third Edition offers a wealth information that you can put to immediate use.

Reviews of this new edition and the second edition:

"There isn't a better (or more useful) book available on regular expressions."

--Zak Greant, Managing Director, eZ Systems

"A real tour-de-force of a book which not only covers the mechanics of regexes in extraordinary detail but also talks about efficiency and the use of regexes in Perl, Java, and .NET...If you use regular expressions as part of your professional work (even if you already have a good book on whatever language you're programming in) I would strongly recommend this book to you."

--Dr. Chris Brown, Linux Format

"The author does an outstanding job leading the reader from regex novice to master. The book is extremely easy to read and chock full of useful and relevant examples...Regular expressions are valuable tools that every developer should have in their toolbox. Mastering Regular Expressions is the definitive guide to the subject, and an outstanding resource that belongs on every programmer's bookshelf. Ten out of Ten Horseshoes."

--Jason Menard, Java Ranch



Product details

  • Paperback: 544 pages
  • Publisher: O'Reilly Media; 3 edition (15 Aug 2006)
  • Language: English
  • ISBN-10: 0596528124
  • ISBN-13: 978-0596528126
  • Product Dimensions: 17.8 x 2.7 x 23.3 cm
  • Average Customer Review: 4.6 out of 5 stars  See all reviews (33 customer reviews)
  • Amazon Bestsellers Rank: 299,860 in Books (See Top 100 in Books)
  • See Complete Table of Contents

More About the Author

Discover books, learn about writers, and more.

Product Description

Amazon Review

Regular expressions--it sounds fairly ordinary in a regular sort of way, so therefore it must be very simple and very straightforward, right? Not quite.

The simple name hides an incredible amount of power when handling textual data with scripting languages such as Perl, Python and awk and more and the programmer that can master regular expressions can master just about anything.

From the off it's necessary to congratulate author Jeffrey Friedl on doing a superb job of asking what can be a very complex subject and breaking it down into digestible chunks that almost anyone can understand.

From the basics of character and pattern matching through to the recognition of complex string patterns and multiple character replacements to "greedy" metacharacters and how to curb their appetite, this is about as comprehensive as it gets.

With a handful of latter chapters devoted to the differences between scripting languages and the way in which they deal with regular expressions and so many examples it'll make your eyes water there's something here for everyone.

So, if you can examine a string like this "(\\.|[^"\\])*" and know what it does and how it does it there's plenty of reference material in here for those odd moments when you need a refresher. If, however, you've no idea what the above means, and you need the ability to handle textual data, buy this book. Now! --This text refers to an out of print or unavailable edition of this title.

Review

"Indispensable for text processing wizards and regex newcomers alike." - Paul Hudson, Linux Format, February 2007 "In addition to the sheer volume of information, one thing that sets this book apart is that the author uses "real-world" rather than contrived examples. A few of the examples were situations that I have yet to come across, but many were either "been there, done that" or things that I had to go out and try." - James Mohr, Linux Magazine, April 2007

Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index | Back Cover
Search inside this book:


Customer Reviews

Most Helpful Customer Reviews
7 of 7 people found the following review helpful
5.0 out of 5 stars Escellent coverage of a surprisingly complex topic 17 April 2002
Format:Paperback
I bought this book so as to answer a couple of simple questions about regular expressions. I then found it surprisingly readable, and read it for pleasure.

Once I had read it, I found that I was able to apply what I had learned in a variety of powerful ways. I had known that regexes are an important part of Perl. But now I find that they are supported by, and remarkably useful in, Javascript.

The subject matter is difficult, largely because different regex engines work in subtly different ways - this is all clearly covered.

Above all, Friedl avoids the irritating patronising style of so many authors of computer books.

Was this review helpful to you?
4 of 4 people found the following review helpful
By David Precious VINE™ VOICE
Format:Paperback|Amazon Verified Purchase
If you regularly develop code in Perl, PHP, Javascript, Java or any other language supporting Regular Expressions, this book will be invaluable to you. Regular Expressions might not look too wonderful, they don't look very friendly, but once you learn them, you'll wonder how you *ever* did without them. This book explains regular expressions comprehensively and simply, and covers specific differences between RE implementations in various languages.

You really can't go wrong here - buying this book and investing a little time to learn Regular Expressions can double your efficiency as a coder - they save me countless hours in my job as a web developer for a major ISP, I couldn't live without Regular Expressions, and I couldn't live without this book!

Comment | 
Was this review helpful to you?
11 of 12 people found the following review helpful
5.0 out of 5 stars A Masterpiece of Fine Details 7 Jan 2004
Format:Paperback
I bought, read and thoroughly enjoyed the first edition of this book, and was actually surprised to find the second edition a few years later, since I thought Jeffrey Friedl must have already said all there was to say about the subject, so complete was edition 1. However, I soon found a lot of useful new information in edition 2 (e.g. look-behind), beautifully explained as ever. Both editions are well-written IMO, although I wouldn't call them "easy reads". They are not really for dipping into, but for settling down with, although I can only usually manage a couple of chapters at a time, but I always come back. They are "satisfying reads", and somewhat addictive; I think they appeal to the nit-picker in me. For dipping into, perhaps the "Regular Expression Pocket Reference" (by a different author) will be better - I haven't read it yet. But if you actually want to understand REs (and they occur widely in the UNIX/Linux world that I inhabit :-) ), this book is a must.

As a bonus, it is also a rather good introduction to Perl (5.8 in the 2nd edition), but of course, REs are not confined to Perl, as the author makes clear.

My only criticism is actually of the paper quality of the 2nd edition, which is odd, since the 1st edition's paper was recycled and acid-free, which this is apparently not, but it looks cheap and nasty. I think Jeffrey Friedl deserves better.

Comment | 
Was this review helpful to you?
Would you like to see more reviews about this item?
Were these reviews helpful?   Let us know
Most Recent Customer Reviews
2.0 out of 5 stars Poor quality print-on-demand publication
O'Reilly appears to have abandoned traditional offset printing and is now using a very poor-quality print-on-demand system. Read more
Published 2 months ago by T. Humphrey
1.0 out of 5 stars the book is great; but the Kindle edition did not receive enough care
al the examples in tables were cut ou
so one couldn't figure out what the sentence actually meant making all practical examples useless and all information presented in tables... Read more
Published 5 months ago by jerome
5.0 out of 5 stars One of the best technical books I've ever owned
Before reading the book I thought I knew regular expressions (ala the xkcd comic); the main reason for purchasing this was to try and learn how to optimise patterns I was... Read more
Published on 15 Sep 2010 by M. Button
5.0 out of 5 stars Get this book and get over your fear
Regular expressions always terrified me. I really got tired of looking for related examples on the 'net and hacking sample code so I decided I had to take the plunge. Read more
Published on 24 Sep 2006 by Jon Wright
5.0 out of 5 stars Great Book
This is one of the best books I have read in a long time. It goes far behind simply using regExps but into efficiency and alternate strategies. Read more
Published on 14 Dec 2003 by MikeH
5.0 out of 5 stars Authoritative and readable
Starts at the beginning with simple examples and detailed explanations. If you stick with it through 500-odd pages I'm sure you will end up knowing everything that's worth knowing... Read more
Published on 17 July 2003 by Graham Phillips
4.0 out of 5 stars Great for Perl or Java programmers ...
I welcome the second edition of this book; it's five years since the first edition, which was showing its age. Read more
Published on 7 Aug 2002 by Graham Ellis
5.0 out of 5 stars And you thought regexes were easy....
"Regular Expressions" -- the term sounds fairly bland and unexciting, but it isn't. Using regexes can cut down the number of lines in your code. Read more
Published on 2 Jan 2001
4.0 out of 5 stars Will help you make sense of a daunting subject
This is a book about Regular Expressions 'for Perl and Other Tools' but really it's a book about Perl. Read more
Published on 7 Jun 2000
5.0 out of 5 stars A great book for anyone serious about JavaScript
There are unfortunately a great number of variations in regular expression syntax between various platforms. Read more
Published on 16 Mar 2000
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   


Listmania!


Look for similar items by category


Feedback