CDN$ 16.80
  • List Price: CDN$ 17.99
  • You Save: CDN$ 1.19 (7%)
FREE Shipping on orders over CDN$ 25.
Only 1 left in stock (more on the way).
Ships from and sold by Gift-wrap available.
Sams Teach Yourself Regul... has been added to your Cart
Have one to sell?
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See this image

Sams Teach Yourself Regular Expressions in 10 Minutes Paperback – Feb 24 2004

4.9 out of 5 stars 7 customer reviews

See all 2 formats and editions Hide other formats and editions
Amazon Price
New from Used from
Kindle Edition
"Please retry"
"Please retry"
CDN$ 16.80
CDN$ 14.91 CDN$ 16.80

Save an Additional 10% on Textbooks When you Join Amazon Student

Special Offers and Product Promotions

No Kindle device required. Download one of the Free Kindle apps to start reading Kindle books on your smartphone, tablet, and computer.

  • Apple
  • Android
  • Windows Phone
  • Android

To get the free app, enter your e-mail address or mobile phone number.

Product Details

  • Paperback: 160 pages
  • Publisher: Sams Publishing; 1 edition (Feb. 24 2004)
  • Language: English
  • ISBN-10: 0672325667
  • ISBN-13: 978-0672325663
  • Product Dimensions: 13.7 x 1 x 20.8 cm
  • Shipping Weight: 259 g
  • Average Customer Review: 4.9 out of 5 stars 7 customer reviews
  • Amazon Bestsellers Rank: #515,631 in Books (See Top 100 in Books)
  •  Would you like to update product info, give feedback on images, or tell us about a lower price?

  • See Complete Table of Contents

Product Description

From the Back Cover

RegEx is supported in all major development environments (for use in editing and working with code) and will thus appeal to anyone using these tools. In addition, every JavaScript developer should be using RegEx, but most don't as it has never been taught to them properly before. Developers using ASP, C#, ColdFusion, Java JSP, PHP, Perl, Python, and more can (and should) be using RegEx, and so every one of them is a potential reader too. The reader of this book will learn how to:

  • Match characters sets
  • Match repeating characters (using minimums and maximums if needed)
  • Match (or ignore) based on case
  • Build sub-expressions
  • Use all of the special characters
  • Work with excape sequences
  • Use POSIX classes to simplify complex expressions
  • Use back-references
  • Use look-behind operators

Sams Teach Yourself Regular Expressions in 10 Minutesis a tutorial book organized into a series of easy-to-follow 10-minute lessons. These well targeted lessons teach you in 10 minutes what other books might take hundreds of pages to cover. Instead of dwelling on syntax, terminology, and arcane examples and scenarios, this book takes a very hands-on approach to solving the needs of the majority of RegEx users who simply need to manipulate data.

About the Author

Ben Forta is Macromedia Inc.'s Senior Technical Evangelist and has more than two decades of experience in the computer industry in product development, support, training, and marketing. Ben is the author of the popular Sams Teach Yourself SQL in 10 Minutes (in this same series), ColdFusion Web Application Construction Kit, its sequel Advanced ColdFusion Application Development, as well as books on JavaServer Pages, Windows development, mobile computing, and other topics. More than one-quarter million Ben Forta books have been printed in more than a dozen languages worldwide. He writes regular columns on Internet and application development topics and spends a considerable amount of time lecturing and speaking on application development worldwide. Ben welcomes your email at and invites you to visit his Web site at

Customer Reviews

4.9 out of 5 stars
5 star
4 star
3 star
2 star
1 star
See all 7 customer reviews
Share your thoughts with other customers

Top Customer Reviews

Format: Paperback
Regular expressions come up in many popular editors, search engines,and parsers. Knowing regular expressions can make your favorite tool even more of a favorite. Knowing them as a programmer can also make you a more productive programmer. Instead of writing your own parser, simply use a regular expression with your favorite programming language such as PERL, PHP, Java, Python, etc.
This book is a very handy guide to get you up and running quickly
with regular expressions. It's not comprehensive but it's likely to tell you just what you need to know 90% of the time. It quickly, concisely covers the basics: pattern matching for single, multiple, or sets of characters, repeats, certain types of characters such as digits, the nth occurrence, and nesting. The book has examples of everything it covers with a thoughtful analysis.
As a surprise bonus, this book comes with two appendices. It tells you how to use regular expressions in popular tools and languages such as grep, MySQL, and Java. It also gives the pattern matches for common items such as zip codes, phone numbers, IP addresses, e-mails, comments, and credit card numbers. I recommend this book to anyone who ever needs to find a string quickly out of a bunch of text.
Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again.
Report abuse
Format: Paperback
This book finally fills a very important niche, since, before it, there wasn't any entry-level Regular Expression manual worth reading. Friedl's book from O'Reilly is excellent, but not suited for beginners. Ben Forta distilled the essential of the subject inside a compact, easy to follow book. Even seasoned programmers often consider the topic arcane, but the author brilliantly managed to cover it in a way that can be easily understood by everybody and still being relevant (avoiding the pitfalls so typical of "dummies" manuals). Every chapter revolves around a set of practical examples, evolving in a linear way, from the very basic up to a few more sophisticated techniques covered inside the last two chapters.
Forta covers Regular Expressions in a language and implementation agnostic way; the result is worth reading regardless of the language/platform you use. It's a small, handy manual that makes the power of Regular Expressions accessible to everybody. Heartily recommended!
Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again.
Report abuse
Format: Paperback
This book is destined be the go-to guide for anyone who needs a tutorial on regex basics that start at Square 1. If you know nothing about regular expressions and want to get up to speed fast this is the book for you. Like the author's SQL guide, it is written in a concise, thorough fashion with baby-step-by-step examples and illustrations that will walk you through the very basic stuff, moving up in complexity as you go along. The book is organized in short lessons that build on one another, and are easy to handle even if you only have a few minutes to spare every day. And you'll find it easy to keep reading given the understandable, engaging writing style. This book makes what was a mystically difficult topic a joy to *finally* figure out.
Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again.
Report abuse
Format: Paperback
If you haven't used regular expressions in a while and need a quick refresher or you're just starting out then buy this book! It's quick and easy to read. Once you're done with this book then you'll be immediately productive for the task at hand. You'll even be unintimidated by those higher level books. This may be a small inexpensive book but it offers so much and is worth more than you'll pay. Ben Forta writes this book in a manner where his examples can be used by many programming languages. He discusses the nuances of each language and even provides a link to a user friendly regular expression tester for each language which can save you a lot of time.
Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again.
Report abuse