Suche books:   





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

Apress, 2005 - 400 pages

average customer review:based on 4 reviews
view larger image
 for more information click here






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. Unfortunately, it didn't pan out that way.

Spread over a whopping 359 pages, the book lists exactly 100 tasks that you can accomplish with a regular expression. As the solution, the author not only gives a regular expression, but also a complete source code snippet in C#, VB.NET, JavaScript and VBScript. Not all solutions have snippets in all languages. Some solutions also have a snippet for ASP.NET.

Obviously, the examples have a heavy bias towards Windows and .NET. If you're using open source languages, you may want to look at this book's precursor "Regular Expression Recipies" instead. It's essentially the same book, with almost the same list of recipes, but with examples in Perl, PHP and Python.

Each recipe also has a "how it works" section, essentially transcribing the regular expression in English, similar in approach to RegexBuddy's plain English regex trees, though the book uses a flat description rather than a tree. The descriptions are brief though. While all the source code snippets easily take up two or more pages per recipe, the explanation is often barely half a page long.

The book does suffer from some sloppy editing. The regular expression in the source code snippets isn't always identical to the one in the description. E.g. in recipe 6-21, the JavaScript snippet uses named capture, and the explanation then proceeds to explain a regex without named capture (which isn't supported by JavaScript). Most of these issues are trivial, but it isn't good for a book that's obviously aimed at beginners.

Most of the recipes solve rather basic problems, organized in six chapters. The first, "Words and Text", deals with finding blank lines, repeated words, words at the start or end of a line, etc. The "URLs and Paths" chapter has examples for finding URLs and file paths, and extracting bits from them. The "CSV and tab-delimited files" has a few recipes for converting between the two and extracting fields.

The "Formatting and Validating" chapter shows how to validate numbers, currency, dates, phone numbers, addresses, etc. The "XML and HTML" chapter has recipes for matching and replacing tags and attributes. Finally, the "Source Code" chapter has a bunch of recipes for manipulating software source code and related files. Most of these tasks are odd jobs that .NET programmers may want to do sometimes.

The book would have been a better deal if it had focused on regular expressions, and left out the many lines of source code, not to mention the redundant copies in several languages. Without the source code, a book of the same size could easily contain 300 examples. That would have made it far more useful for programmers who know how to program, but aren't well-versed in regular expressions.

As it is, I can only recommend this book to people who are not only new to regular expressions, but also relatively new to programming. The book does contain many recipes that solve basic problems you're likely to encounter when writing .NET applications or scripts for a web site. If you happen to use C#, VB.NET, JavaScript or VBScript, and are looking for a cookbook approach, you'll certainly find the book useful.

But don't expect to really learn how regular expressions work from this book. If you develop software for a living, you're better of with a good regular expression tutorial such as the one at www.regular-expressions.info or a book like "Mastering Regular Expressions".


 for more information click here


Very cool

I was searching to a book to give some pratical information about regular expressions. Very cool.









 for more information click here


Every .NET developer should own this book

Regular expressions are one of the most abstract topics for the average developer to master. Nathan does a real good job of producing something that any developer should be able to start and build their own base library of core expressions.
The approach he takes by presenting some introduction to Regular Expressions, then presenting usable code in three languages is so useful. Regular Expressions are so abstract, but yet so simple the best way to learn them is by example. For me this was the best book on using Regular Expressions in .NET.


 for more information click here






Clear, concise, and very useful

The Syntax Overview at the beginning of the book is worth the price alone. Nathan outlines the basic parts of regular expressions and gives you a clear idea of what they are without getting pedantic. This overview isn't even included in the main chapters but rather as an introductory supplement perhaps underestimating its usefulness. Do yourself a favor especially if you are new to regular expressions and read this section first.

After introducing you to the basics the book moves right into real-world examples. Again, no fooling around with fancy scenarios that distract from the purpose of the book. You get a paragraph or two to describe the task at hand and inform you of any assumptions made about the target data and then right into the code. Example code is included for ASP.NET validators, C#, Visual Basic.NET, VBScript and JavaScript for EVERY SINGLE TASK. No fighting with language syntax differences which again would distract you from the expressions.

Following the code examples is a step-by-step description of how it works. Nathan again shows restraint in describing how the expression evaluates using little more than a single line for each part of the expression.

This is a very well-written work that makes an excellent addition to any programmer's bookshelf.


 for more information click here



(Nathan A. Good) steps through each recipe and explains step by step what the pattern is trying to accomplish.

? Steven Mandel, .NET Developer's Journal

Regular expressions are an essential part of programming, but they can be difficult to cope with. Enter Regular Expression Recipes for Windows Developers. This is the only book of its kind that presents material in a functional, concise manner. It contains over 100 of the most popular regular expressions, along with explanations of how to use each one. It also covers all of the major development languages, including JavaScript, VB, VB .NET, and C#.

Author Nathan A. Good teaches by example and provides concise syntax references as necessary throughout the book. You're sure to find his examples accurate and relevant. This book is an ideal solutions guide for you to keep in a handy place for quick reference.




 for more information click here



hot or not?    What's your opinion?     Write a review and share your thoughts!



recommendations

Regular expressions and string manipulations




problem-solution

Schaum's Outline of College Physics, 10th edition (Schaum's Outlines)
Student Solutions Manual to accompany Boyce Elementary Differential ...
Charles Reid's Watercolor Solutions: Learn To Solve The Most Common ...
The Knitting Answer Book: Solutions to Every Problem You'll Ever ...
Spring Recipes: A Problem-Solution Approach (Books for Professionals ...



expression

Baby Faces (Playskool Books)
Open Our Eyes: Poetic Meditations, Inspirations and Affirmations For ...
C# 3.0 in a Nutshell: A Desktop Quick Reference (In a Nutshell ...
Illuminations: Expressions of the Personal Spiritual Experience
A Family of Strangers (Five Star Expressions)



approach

Essentials of Sociology: A Down-to-Earth Approach (7th Edition) ...
Sociology: A Down-to-Earth Approach (9th Edition) (MySocLab Series)
Research Design: Qualitative, Quantitative, and Mixed Methods ...
Foundations of Psychiatric Mental Health Nursing: A Clinical ...
Pharmacotherapy: A Pathophysiologic Approach



search for books
regular expression, approach, developers, expression, problem, problem-solution, recipes, solution


Impressum / about us


Suche books: