Sams Teach Yourself Regular Expressions in 10 Minutes and over one million other books are available for Amazon Kindle. Learn more

Vous voulez voir cette page en français ? Cliquez ici.

Sign in to turn on 1-Click ordering.
More Buying Choices
Have one to sell? Sell yours here
Start reading Sams Teach Yourself Regular Expressions in 10 Minutes on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Sams Teach Yourself Regular Expressions in 10 Minutes [Paperback]

Ben Forta
4.9 out of 5 stars  See all reviews (7 customer reviews)
List Price: CDN$ 17.99
Price: CDN$ 13.13 & FREE Shipping on orders over CDN$ 25. Details
You Save: CDN$ 4.86 (27%)
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
Temporarily out of stock.
Order now and we'll deliver when available. We'll e-mail you with an estimated delivery date as soon as we have more information. Your account will only be charged when we ship the item.
Ships from and sold by Gift-wrap available.


Amazon Price New from Used from
Kindle Edition CDN $9.18  
Paperback CDN $13.13  

Book Description

Feb. 24 2004 0672325667 978-0672325663 1

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 Minutes is 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.

Customers Who Bought This Item Also Bought

Product Details

Product Description

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

3 star
2 star
1 star
4.9 out of 5 stars
4.9 out of 5 stars
Most helpful customer reviews
By Yuward
Format:Paperback|Verified Purchase
Ce livre est d'après moi la meilleure façon d'apprendre à utiliser les expressions régulières. Il est facile à comprendre et donne beaucoup d'exemple.
Was this review helpful to you?
5.0 out of 5 stars A Great Refresher or Starter June 12 2004
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?
5.0 out of 5 stars Quick and concise explanation of regex May 31 2004
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?
4.0 out of 5 stars Concise book on Regular Expressions March 29 2004
Pop open this book and about 2 hours later you'll have regular expressions down. At least, I did! A very helpful chapter on parsing HTML solved an immediate problem I had. And I find all the examples I tried works with Jython, the Python scripting language implemented in Java, that I use in TestMaker, my open-source framework for testing Web-enabled applications for scalability, functionality, and performance. -Frank Cohen, PushToTest
Was this review helpful to you?
Want to see more reviews on this item?

Look for similar items by category