Goodreads helps you keep track of books you want to read.
Start by marking “Mastering Regular Expressions” as Want to Read:
Mastering Regular Expressions
Enlarge cover
Rate this book
Clear rating
Open Preview

Mastering Regular Expressions

4.13  ·  Rating Details  ·  1,450 Ratings  ·  52 Reviews
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 o
...more
Paperback, Third Edition, 515 pages
Published August 18th 2006 by O'Reilly Media (first published January 8th 1997)
More Details... edit details

Friend Reviews

To see what your friends thought of this book, please sign up.

Reader Q&A

To ask other readers questions about Mastering Regular Expressions, please sign up.

Be the first to ask a question about Mastering Regular Expressions

Community Reviews

(showing 1-30 of 3,000)
filter  |  sort: default (?)  |  Rating Details
Igor Tsinman
Jun 14, 2012 Igor Tsinman rated it really liked it
Mastering Regular Expressions by Jeffrey E.F. Friedl это замечательная книга/учебник. Всем программистам иметь/читать обязательно. UNIX/Linux программистам я рекомендую прочитать эту книгу раз десять (т.е. выучить наизусть).

Без навыков написания regex очень сложно (практически невозможно) использовать sed, awk, shell, perl, python, etc. А без этого работать на UNIX системах не получится (исключение из этого правило это Java-Java программеры, которым в принципе все равно на какой системе работат
...more
Rick Strong
Sep 21, 2015 Rick Strong rated it it was amazing  ·  review of another edition
Shelves:
I'm currently reading this book, not done yet, but I'll rate it 5 stars anyway for its usefulness. Regex, which provides a formal way to express text search patterns, is one of the things I always promised to learn properly, since the need for it - finding and replacing text - pops up so often in software development. In my current assignment I've had to use it on a VERY regular basis, and this prompted me to sit down with this volume and go through it front to back.

The first part of the book d
...more
Mike
Oct 30, 2007 Mike rated it really liked it
Shelves: development
In writing code, regular expressions are used to find patterns in text. This book explains what they are and how to use them effectively. Chances are you will find out more than you ever wanted to know about them, and quite possibly more than can be immediately assimilated. The author stays focused on regular expressions; all his extensive examples are regex-specific, there is no time wasted on introducing language basics that the reader could easily find elsewhere. The transition from easy exam ...more
Jesse Houwing
Nov 09, 2013 Jesse Houwing rated it really liked it
Shelves: work
If you ever need to dive deeply into regular expressions, then this is the book to read. It doesn't just cover syntax, but dived deeply into state machines, optimizations and the way the engine's are generally implemented.

This book, however, doesn't tell you how to use each different dialect of Regex out there and some of the things the book explains might not be true for your regex engine of choice. I've used it a lot in conjunction with the Regular Expression Pocket Reference: Regular Expressi
...more
Scott
Jun 29, 2009 Scott rated it really liked it
Shelves:
I am reading "Mastering Regular Expressions" by Jeffrey Friedl, and am really enjoying it. Not only is it a topic that I find very interesting, but Jeffrey does a great job of leading you (and challenging you) on a path of discovering the power of regex. The narrative is sometimes a bit too self-conscious (the author never lets you forget that it's HIM doing the talking), but that can be forgiven because the book is well written and interesting.

I don't read a lot of technical, "geeky" books, so
...more
Puneet Singh
Feb 05, 2016 Puneet Singh rated it really liked it
Shelves: will-read-again
It gives you a in-depth insight about regular expressions and how to optimize them. It manage to show that how regular expression work for different types of expression engine and languages. To understand the regular expression properly some chapters of it needed to read more than once. This book is lacking a 5 star from my side because the version of book is very old and there are some obsolete examples in few places.
K. M.
Jun 13, 2008 K. M. rated it liked it
Shelves: programming
I read the first edition many years ago and while I don't remember the contents in detail, I get the impression that this edition has a much smoother opening than its predecessor, and is thus an easier book to read for less experienced programmers. The first few chapters teach the core techniques, with could recaps and summaries, as well as a lot of useful examples.

The second half of the book is much more advanced and focuses more on the technical aspects of regex engines, ways of maximizing ef
...more
Doug Alcorn
Jun 26, 2014 Doug Alcorn rated it really liked it
Back when I read this book it was truly fantastic. No one else had ever dove as deeply into regular expressions. I don't think anyone has since either. However, regexps play a less crucial role than they used to. I still think the book is worth reading if only to get over your fear of regexps.
Michael Jinks
Jan 03, 2016 Michael Jinks rated it it was amazing  ·  review of another edition
Shelves: reference, technical
Essential reading, or at least perusing, for any programmer or sysadmin of any language or platform. Regular expressions are one of the most important means we have for communicating with our digital tools, and this is the best introduction and reference I've been able to find.
Ivan
Aug 28, 2014 Ivan rated it it was amazing
Shelves: programming
Фантастическая книга. Начинается как методичное, но совсем не скучное, разжевывание самых основ. А затем все глубже и глубже. Практически идеальный пример учебника. Фридл концентрируется только на самом важном, и делает весь сложную тему доступной.
Yuri
Feb 04, 2013 Yuri rated it it was amazing
This was my first book on Regular Expression, so I won't be saying that it is the best or most thorough (no real frame of reference), like some other reviewers do. However, I love the style, the layout, the amount of detail, ... everything about this book. I tend to read a few books on a subject I am researching, because I feel like certain things were not covered or were covered poorly. I will not be picking up another book on RegEx. I will certainly revisit this book from time to time.

I canno
...more
Tushar Tyagi
Jan 27, 2016 Tushar Tyagi rated it it was amazing
Shelves: technical
Whatever I know about Regexes, I owe it to this masterpiece.
I read this a few years ago, and I can say this is rightly a must-read book for any programmer.
Russ
Sep 16, 2014 Russ rated it really liked it
Shelves: computer-books
This provides a comprehensive guide to regular expressions, which is potentially quite a dull topic, in a interesting and very readable manner.
Amit
Dec 11, 2014 Amit rated it it was amazing
Shelves: computers
One of those books that you have revisit a few times before it really starts to sink in. Well written book about one of the darker arts.
Steven Raspudic
Jan 05, 2016 Steven Raspudic rated it it was amazing
Shelves: favorites
I read this book a few years ago, so the details are a bit hazy in my mind. But I actually enjoyed reading this book (hard to believe, I know). It was written in a conversational, opionated style where the author takes you on a regex journey. How practically useful reading this book is for you, my dear fellow programmer, is an open question. My sense is that for practical matters, regex's are actually overused (round peg, square hole etc.), and if you actually need the power of regex's described ...more
Oleksandr Savchenko
Книга помогает лучше понять как правильно составлять регулярные выражения, понимать какие данные поддаются анализу регулярными выражениями, а какие - нет. Она должна стать настольной книгой разработчиков, которые часто анализируют данные и хотят это делать качественно и быстро (автор обращает внимание не только на составление регулярных выражений, но и на их оптимизацию).
Очень хорошая книга, рекомендую к прочтению, но будьте осторожны - после прочтения хочется все обработать регулярными выражени
...more
Eduardo
Mar 26, 2014 Eduardo rated it really liked it
This is not a book *only* about RE but also about the differences in how the main RE engines work. It's written in a slow peace that allows for an easy reading without passing from beginner to absolute complexity.
And don't be frightned by the number of pages since the last 200 or so are about particularities in 4 differente languages that you, as me, may not read until really needed.

That being said, is a great book to get a deep insight in RE.
Aaron M
Aug 08, 2012 Aaron M rated it really liked it  ·  review of another edition
The thing about this book is that it one of those rare texts that can be read cover to cover or used as a reference. This is what we can only wish a textbook would be like.

The book is intense. For practical purposes, you should at the very least read the section covering the basics. That will give you an understanding that will cover 90% of what you might need to do in the real world. After that you can use it to look up issues as they come.
Jon Gauthier
Mar 24, 2012 Jon Gauthier rated it really liked it
Shelves: programming
I've been writing regexes for years, but this book still offered new information on the in-depth workings of regex engines and how to optimize expressions by taking advantage of the engine's strong areas.

If you think you already have a good understanding of regular expressions, you can safely skip to chapter 4. The author includes cross references everywhere, so you can still catch up on some minor detail you may have missed.
Al
Sep 18, 2007 Al rated it it was amazing
Recommends it for: geeks
Heh, heh. I said "Mastering"

Regular Expressions (or RegEx) are a powerful way to recognize and define complex patterns in strings.

My 4-year-old daughter is learning math, and they're starting by teaching her to recognize patterns.

All of research is merely the recognition of patters in data.

This is a really, really important, fundamental, atomic concept. One that I have yet to say I've "Mastered". Heh.
Alpha
May 18, 2009 Alpha rated it it was amazing
I thought I was pretty good at regular expressions, but this book puts me to shame. It also makes me glad that I don't have to worry about optimizing them or using them for anything besides quick REPL-type things. Fantastic for anyone who does need a deeper knowledge of regexen. Still quite good for people at my level, where more technical knowledge is helpful, even if it isn't necessary.
David
Oct 15, 2011 David rated it really liked it
Shelves: reference-books
Before O'Reilly started trying to be hip and cool and coining terms like "Web 2.0", they used to write books that didn't suck. This is one of them.

Think you know regular expressions? This book isn't a simple introduction that fades out somewhere near character classes. It's called "Mastering Regular Expressions", and that indeed is it's intent.
Robert
Feb 17, 2012 Robert rated it really liked it
I didn't read the book right through, as certain content was not applicable to my knowledge at this point in time, but I found the writing style, information level provided and detail of explaination to be fantastic from this book. Really happy to have found it, currently got this in eBook format but likely to buy it paper format for my desk.
Manny Tingplants
Jun 20, 2015 Manny Tingplants rated it it was amazing
Shelves: compsci
An entirely higher scope of explanation of regular expressions than any snippet you'll find in the manual or help docs for any particular programming language. J. Friedl is clear, as concise as possible given the subject matter, and a witty pleasure to read. If you have text that needs processing, this is your book.
Chris
Sep 13, 2008 Chris rated it it was amazing  ·  review of another edition
Reading this was fantastically useful, I finished just recently but the new knowledge has already earned its keep. It's like taking an intro class on the history and implementation of regex engines from an excellent professor, sans homework and exams.
Abraao Lourenco
Read this book, understand it, become a regular expression master. This is THE book to read if you want to learn about how regular expression work, and how to use them efficiently.
Christian
Dec 29, 2012 Christian rated it really liked it
This was a great intro to RegExes. The first few chapters give you a thorough introduction to the subject and the rest of the book is just gravy.
Phoenixfly
May 18, 2008 Phoenixfly rated it it was amazing
Shelves: it-related
the 'must have' book for all computer programmer, because we can learn how to catch a line of character from long string or text.
Artur A
Sep 12, 2012 Artur A rated it it was amazing
Recommends it for: every programmer
Shelves: it
Fantastic!
Before reading this book I thought that somehow knew regular expression, but truly the understanding came after the book.
j monty
Apr 18, 2007 j monty rated it really liked it
While I believe the author to be a bit of a show-off, the book is good stuff. Required for anyone serious about Regular Expressions.
« previous 1 3 4 5 6 7 8 9 99 100 next »
topics  posts  views  last activity   
Like this book? Join the O'Reilly Media Fan Page 1 11 Oct 28, 2009 09:23AM  
  • Programming Perl
  • sed & awk
  • Perl Cookbook
  • Learning Perl
  • Learning the bash Shell
  • Learning the vi and Vim Editors
  • UNIX Power Tools
  • Programming Python
  • The Protocols (TCP/IP Illustrated, Volume 1)
  • The UNIX Programming Environment
  • Programming Pearls
  • Learning XML
  • JavaScript: The Definitive Guide
  • Perl Best Practices
  • Regular Expressions Cookbook
  • C: A Reference Manual
  • HTML & XHTML: The Definitive Guide
  • Essential System Administration

Goodreads is hiring!

If you like books and love to build cool products, we may be looking for you.
Learn more »
404200
Jeffrey worked for Omron Tateishi Denki (1989-1997) and Yahoo! Finance (1997-2005), but now lives in Kyoto, Japan with his family.
More about Jeffrey E.F. Friedl...

Share This Book



“Just as there is a difference between playing a musical piece well and making music, there is a difference between knowing about regular expressions and really understanding them.” 0 likes
“When it comes down to it, regular expressions are not difŒcult. But, if you talk to the average user of a program or language that supports them, you will likely Œfind someone that understands them ™a bit,š but does not feel secure enough to really use them for anything complex or with any tool but those they use most often.” 0 likes
More quotes…