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

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: Powerful Techniques for Perl and Other Tools (Nutshell Handbook) [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, 8 Jan 1997 --  
Amazon.co.uk Trade-In Store
Did you know you can trade in your old books for an Amazon.co.uk Gift Card to spend on the things you want? Visit the Books Trade-In Store for more details. Learn more.
There is a newer edition of this item:
Mastering Regular Expressions Mastering Regular Expressions 4.6 out of 5 stars (33)
Currently unavailable

Book Description

8 Jan 1997 1565922573 978-1565922570 1

Regular expressions are a powerful tool for manipulating text and data. If you don't use them 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.

With regular expressions, you can save yourself time and aggravation while dealing with documents, mail messages, log files -- you name it -- any type of text or data. For example, regular expressions can play a vital role in constructing a World Wide Web CGI script, which can involve text and data of all sorts.

Regular expressions are not a tool in and of themselves, but are included as part of a larger utility. The classic example is grep. These days, regular expressions can be found everywhere, such as in:

  • Scripting languages (including Perl, Tcl, awk, and Python)
  • Editors (including Emacs, vi, and Nisus Writer)
  • Programming environments (including Delphi and Visual C++)

While many of these tools originated on UNIX, they are now available for a wide variety of platforms, including DOS/Windows and MacOS, so you can use them in your home environment. Additionally, many favorite programming languages offer regular-expression libraries, so you can include support for them in your own programs, and yes, even applets.

There can be certain subtle, but valuable, ways to think when you're using regular expressions, and these can be taught. Jeffrey Friedl has spent years helping people on the Net understand and use regular expressions. In this book he leads you through the steps of knowing exactly how to craft a regular expression to get the job done.

Regular expressions are not used in a vacuum. In this book, a variety of tools are examined and used in an extensive array of examples, with a major focus on Perl. Perl is extremely well endowed with rich and expressive regular expressions. Yet what is power in the hands of an expert can be fraught with peril for the unwary. This book will help you navigate the minefield to becoming an expert.



Product details

  • Paperback: 368 pages
  • Publisher: O'Reilly Media; 1 edition (8 Jan 1997)
  • Language: English
  • ISBN-10: 1565922573
  • ISBN-13: 978-1565922570
  • Product Dimensions: 23.1 x 17.8 x 2.5 cm
  • Average Customer Review: 4.6 out of 5 stars  See all reviews (33 customer reviews)
  • Amazon Bestsellers Rank: 409,010 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!

Review

As the only reference to the art, it should be on the bookshelf of every programmer and anyone who works with large text files. -- Major Keary, Book News, 2002 No 5

If you have ever used a regular expression or ever wanted to use one, this is the book for you! -- James Lance, Provo Linux User Group, May 2002

This book contains everything
you need to know bout the mysterious regex -- David Wller, Java Developers Journal Jan 2002

Inside This Book (Learn More)
Browse and search another edition of this book.
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