Thursday, February 19, 2009

A good regex resource

It's not particularly easy to find regular-expression examples on the Web, but Michael Stutz's Hone your regexp pattern-building skills (at the IBM developerworks site) contains tons of practical examples of regular expressions you can use for form validation and other purposes. While the article is aimed mainly at UNIX professionals (and therefore contains a lot of mentions of egrep and other shell-command cruft), the actual regex syntax used in the examples is POSIX-based and thus the examples should work fine in JavaScript.

If you need to bone up on regular expressions, and you like the "learn by example" approach, check out Stutz's article. It'll get you up to speed quickly.

2 comments:

  1. This is my #1 source for regex. Even downloaded the pdf version of the site and keeping it handy, just incase.

    http://www.regular-expressions.info/

    ReplyDelete
  2. Anonymous10:05 AM

    http://regex-test.com

    ReplyDelete

Please add your comment here!