or
Sign in to turn on 1-Click ordering.
 
 
Express Checkout with PayPhrase
What's this? | Create PayPhrase
More Buying Choices
35 used & new from $1.99

Have one to sell? Sell yours here
 
   
Regular Expression Recipes: A Problem-Solution Approach
 
See larger image
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get your Kindle here.
 
  

Regular Expression Recipes: A Problem-Solution Approach (Paperback)

~ (Author)
4.0 out of 5 stars  See all reviews (7 customer reviews)

List Price: $34.99
Price: $28.62 & this item ships for FREE with Super Saver Shipping. Details
You Save: $6.37 (18%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Only 2 left in stock--order soon (more on the way).

21 new from $1.99 14 used from $1.99

Frequently Bought Together

Regular Expression Recipes: A Problem-Solution Approach + Mastering Regular Expressions + Regular Expression Pocket Reference (Pocket Reference (O'Reilly))
Price For All Three: $68.50

Show availability and shipping details

  • This item: Regular Expression Recipes: A Problem-Solution Approach by Nathan A. Good

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Mastering Regular Expressions by Jeffrey E F Friedl

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Regular Expression Pocket Reference (Pocket Reference (O'Reilly)) by Tony Stubblebine

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details


Customers Who Bought This Item Also Bought

Beginning Regular Expressions (Programmer to Programmer)

Beginning Regular Expressions (Programmer to Programmer)

by Andrew Watt
4.5 out of 5 stars (6)  $34.65
Regular Expressions Cookbook

Regular Expressions Cookbook

by Jan Goyvaerts
4.8 out of 5 stars (18)  $29.70
Regular Expression Pocket Reference (Pocket Reference (O'Reilly))

Regular Expression Pocket Reference (Pocket Reference (O'Reilly))

by Tony Stubblebine
4.2 out of 5 stars (28)  $10.19
Sams Teach Yourself Regular Expressions in 10 Minutes

Sams Teach Yourself Regular Expressions in 10 Minutes

by Ben Forta
4.2 out of 5 stars (27)  $11.55
Regular Expression Recipes for Windows Developers: A Problem-Solution Approach

Regular Expression Recipes for Windows Developers: A Problem-Solution Approach

by Nathan A. Good
4.2 out of 5 stars (4)  $31.19
Explore similar items

Editorial Reviews

Product Description

...a handy book to have. I wouldn't hesitate to recommend it. This book is a good reference for those more interested in simply getting the job done. </a></p> </blockquote> <p id="quoteAuthor">&#8212; Jack Herrington, Code Generation Network</p></div>

<p>Regular Expressions are an essential part of programming, but they sure are hard to come to grips with, aren't they? Fortunately, we have the answer for you! <i>Regular Expression Recipes </i> provides you with all the open source regular expressions you'll ever need, and explains how to use each one. This way, you can learn by example, rather than muddling through countless pages of explanatory syntax.</p>

<p>Author Nathan A. Good includes syntax references only when necessary. Languages covered include Perl, PHP, grep, vim, Python, and shell. Web and applications developers, and system administrators will find the examples both accurate and relevant. And this book acts as a useful reference to keep handy for those moments when an answer is needed fast.</p>



About the Author

Nathan A. Good lives in the Twin Cities area in Minnesota. He is a contractor with Alliance of Computer Professionals in Bloomington. When he isn’t writing software, Nathan enjoys building PCs and servers, reading about and working with new technologies, and trying to get all his friends to make the move to open source software. When he’s not at a computer (which he admits is not often), he spends time with his family, at his church, and at the movies.

Product Details

  • Paperback: 289 pages
  • Publisher: Apress; 1 edition (December 6, 2004)
  • Language: English
  • ISBN-10: 159059441X
  • ISBN-13: 978-1590594414
  • Product Dimensions: 9 x 6.9 x 0.9 inches
  • Shipping Weight: 1.3 pounds (View shipping rates and policies)
  • Average Customer Review: 4.0 out of 5 stars  See all reviews (7 customer reviews)
  • Amazon.com Sales Rank: #288,207 in Books (See Bestsellers in Books)

More About the Author

Nathan A. Good
Discover books, learn about writers, read author blogs, and more.

Visit Amazon's Nathan A. Good Page

What Do Customers Ultimately Buy After Viewing This Item?

Regular Expression Recipes: A Problem-Solution Approach
38% buy the item featured on this page:
Regular Expression Recipes: A Problem-Solution Approach 4.0 out of 5 stars (7)
$28.62
Mastering Regular Expressions
22% buy
Mastering Regular Expressions 4.5 out of 5 stars (134)
$29.69
Regular Expressions Cookbook
21% buy
Regular Expressions Cookbook 4.8 out of 5 stars (18)
$29.70
Beginning Regular Expressions (Programmer to Programmer)
12% buy
Beginning Regular Expressions (Programmer to Programmer) 4.5 out of 5 stars (6)
$34.65

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

7 Reviews
5 star:
 (1)
4 star:
 (5)
3 star:
 (1)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.0 out of 5 stars (7 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
17 of 17 people found the following review helpful:
4.0 out of 5 stars Grab bag of commonly used regular expressions, December 28, 2004
This is the cookbook approach to regular expressions. Nathan gives a bunch of common scenarios (parsing filenames, CSV, validating emails and SSNs) and gives us the expression in Perl. Followed by a discussion of the code, and further examples in PHP, shell script, VIM and others.

There is a small section at the beginning to teach you the fundamentals. But there is nothing at the level of Mastering Regular Expressions (O'Reilly), the classic work in the field.

This book is a good reference for those more interested in simply getting the job done, than in understanding how or why the pattern works. There are some bad examples. In particular the Spam filter example is almost worthless. But most of the examples are well written.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
12 of 12 people found the following review helpful:
4.0 out of 5 stars A cookbook of useful regular expressions for Perl and more., March 18, 2005
If you spend time working writing applications that have to do pattern matches and/or replacements, you know about some of the intricacies of regular expressions. For many people they can be an arcane hodgepodge of odd characters, but they don't have enough time (or interest) to really understand how to code them. Nathan A. Good has written <cite>Regular Expression Recipes: A Problem-Solution Approach</cite> for those people. In its relatively slim 289 pages, he offers 100 regular expressions in a cookbook format, tailored to solve problems in one of six broad categories (Words and Text, URLs and Paths, CSV and Tab-Delimited Files, Formatting and Validating, HTML and XML, and Coding and Using Commands).
Regular expressions are not restricted to just the Perl or shell environments, so Nathan offers variations for Python, PHP, and VIM as well. In most cases the translation is relatively straight-forward, but in a few cases a different environment may have (or lack) additional facilities, prompting a different expression to do the same task.
Before you even read chapter 1, Nathan provides a quick summary course on regular expressions, with detail given to each of the five environments you might utilize. He has written the syntax overview in a highly-readable format, making it easy to understand the gobbledy-gook of the most bizarre concoctions you might encounter.
In each chapter, Nathan gives examples of how to find single words, multiple words, and repeated words, along with examples of how to replace various detected strings with others. In each case he gives an example of its use for each platform, followed by a bit-by-bit breakdown of how it works. Not every environment is given on every example, and in many cases the "How It Works" section refers to the first one, as most REs are identical between the platforms.
First, I must admit that there are a number of useful solutions provided, especially for someone who is concerned with application and web development. However, I did feel a little cheated by the fact that several chapters covered essentially the same task, with only minor variations. It almost seemed as though the author was trying to pad out the solution count to the magic number 100. A simple example: three solutions in chapter one cover (a) replacing smart quotes with straight quotes, (b) replacing copyright symbols with the (c) tri-graph, and (c) replacing trademark symbols with the (tm) sequence. Did we really need three separate chapters for that? I don't think so.
Another quibble revolves around some of the coding of the expressions. Nathan has made liberal use of the non-capturing groups to insure only the items that needed replacement were captured. While a worthy idea, in some cases the expression may have been simplified for understanding. Another issue is a slight error in searching for letters. In a number of expressions, Nathan uses [A-z] to capture all letters. Unfortunately, the special characters [, \, ], ^, _, and ` occur between upper-case Z and lower-case a, making it match too much. Either [[:alpha:]] or [A-Za-z] should have been used.
Despite a couple of quibbles, <cite>Regular Expression Recipes</cite> does provide a useful compendium of solutions for common problems developers face. Presenting the information in a cookbook fashion, along with insuring that those using something other than Perl don't have to sweat translating the expressions to their target language, makes this a handy book to have. I wouldn't hesitate to recommend it.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
12 of 12 people found the following review helpful:
4.0 out of 5 stars Regular Expressions for the Beginner, January 2, 2005
In "Regular Expression Recipes" the author does a good job of cutting away the sometimes tedious and at sometimes overwhelming job of teaching the reader every in and out of regular expessions and instead focuses on providing practical, real-world examples that the reader can try in a variety of languages and see instant results.

No doubt, one of the strengths of this book is that is takes Regular Expressions and demonstrates them not in just one language but in several (Perl, Python, PHP, grep, sed and Vim). In this way, a reader who is familiar with any of these languages can catch on and understand what is happening without having to learn yet another syntax just to understand the basics of regular expressions.

The book itself is categorized into different topics with an index system that makes it easy to jump to right what you are most interested in. When the author covers a topic, such as Reformatting Last Names, he also cross-references other useful, related regular expressions that the reader may also have an interest in given the topic.

Of particular interest to those new to the Regular Expression field, the author does a good job of explaining in everyday terms how an expression works. One of the drawbacks of many RegEx books is that often you cannot grasp exactly why a certain syntax works because of the complexity of the problem.

The only lacking spot in this book is that it does not include any "real" output of running the regular expressions; however given the content and ease-of-use of the book, this is but a small caveat that should not impact most readers.

Overall, a wonderful reference that explains Regular Expressions in terms that most beginning and intermediate users will enjoy and learn from.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

4.0 out of 5 stars Regular Expression 101
If you have trouble understanding regular expressions then this book will clear all that up. This was an invaluable resource for quickly adding some regulard expressions to a... Read more
Published on October 31, 2006 by P. Rogers

3.0 out of 5 stars Too much source code, not enough regular expressions
When I saw the title of this book, I was excited at the prospect of a book filled with detailed regular expression examples. Read more
Published on August 25, 2005 by Jan Goyvaerts

4.0 out of 5 stars Nice bridge between learning and doing...
Regular expressions are very powerful, but extremely cryptic to read and/or understand. Nathan A Good's book Regular Expression Recipes - A Problem-Solution Approach (Apress)... Read more
Published on April 10, 2005 by Thomas Duff

5.0 out of 5 stars One of the best guides available
Whether you are using Perl, PHP, Python, grep, sed, or any other program that uses regular expressions you will eventually have a problem trying to figure out just how to do... Read more
Published on February 9, 2005 by Harold McFarland

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
   




Product Information from the Amapedia Community

Beta (What's this?)


Look for Similar Items by Category


Look for Similar Items by Subject

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Your Recent History

 (What's this?)

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.