Mastering Regular Expressions (Mastering)

ClanBrandon Books
view more info on this item
click here for more details, find new or used items

Jeffrey Friedl

Used from £15.24

Pages: 542 (Paperback)

ISBN: 0596528124

Pub: O'Reilly Media, Inc.

Pub date: 2006-08-08

Amazon.co.uk Sales Rank: 55055

Check for 3rd party sellers (new/used)

Editorial 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!

Reader Reviews:


5/5 stars

Get this book and get over your fear (1/1 people found this helpful)

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.

I can say that the first chapter of this book is one of the most important chapters of any book I ever read. It leaves you breathless. Actually you'll probably want to read it again as the first time round you were so glued to the pages you didn't have time to try out the examples yourself.

In a book such as this layout and typographical conventions are of utmost importance and this book gets this spot on. An author who can cover this subject without simply using masses of examples and dry outlines of selected syntax arrangements deserves an acolade. This book goes further. It stimulates the juices and is a struggle to put down (to the detriment of your hands-on practice as mentioned above).

I was quite wary of exploring the territory of regular expressions and used to be very ambivalent towards Perl but this book helped to ease me in to a whole new world of script programming.

This book is not just for Perl geeks. PCREs (Perl Compatible Regular Expressions) are creeping into other programming and scripting languages now and this book will serve you no matter where you're coming from.

Get this book and get over your fear!

5/5 stars

A Masterpiece of Fine Details (8/9 people found this helpful)

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.

5/5 stars

Great Book (7/8 people found this helpful)

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. Covers implementation in many languages (java, perl, .net) yet is still quite easy to understand.

The author says the aim of the book is to get you to "think in regular expressions", this is a great approach and I now find myself using regular expressions to do just about everything involving text.

Well recommended if you really want to understand and use regular expressions

5/5 stars

Authoritative and readable (1/1 people found this helpful)

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 about regular expressions. Personally I gave up about a third of the way through because I had learned everything I needed for my particular purposes. But it's good to know the book is still there for whenever I need to know some obscure detail. The writing style is great (readable like a story but sometimes quirky) and the layout and typography are exemplary.

5/5 stars

Quality - your coding will never be the same again! (3/3 people found this helpful)

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!

Categories

Amazon.co.uk places this book into the following categories:

Books -> Subjects -> Computing & Internet -> General
Books -> Subjects -> Computing & Internet -> Programming -> Languages -> PHP
Books -> Subjects -> Computing & Internet -> Programming -> Languages -> Java -> XML
Books -> Subjects -> Computing & Internet -> Programming -> Languages & Tools -> Object Oriented -> General AAS
Books -> Subjects -> Computing & Internet -> General AAS
Books -> Subjects -> Computing & Internet -> Software & Graphics -> General AAS
Books -> Subjects -> Computing & Internet -> Web Development -> General AAS
Books -> Subjects -> Computing & Internet -> Web Development -> Web Scripting & Programming -> General AAS
Books -> Special Features -> Search Inside!
Books -> Refinements -> Language (feature_browse-bin) -> English
Books -> Refinements -> Age (feature_two_browse-bin)
Books -> Refinements -> Format (binding_browse-bin) -> Paperback
Books -> Refinements -> Condition (condition-type)

 

ClanBrandon Books | Prague airport transfer | Dreamweaver | Short Term Missions | English Teacher Jobs in the Czech Republic
Czech Republic | Operation Mobilisation | Czech Republic Map