Nettuts+ has a good article on 8 regular expressions you should know, useful for every Web developer. The article covers four of the most common matches needed—usernames, passwords, email addresses, and URLs, plus four others. For each, the pattern is presented and described, and examples of what will and won’t match each pattern are included. A quick and worthwhile read!
Archives For regex
In this edition…
- About This Newsletter
- What Were You Thinking? => Ajax and Search Engines
- On the Web => My Web Host, ServInt
- On the Web => 37 Tested PHP, Perl, and JavaScript Regular Expressions
- On the Blog => Review of “Technical Blogging” by Antonio Cangiano
- Q&A => Have You Changed Your Opinion of OOP?
- Q&A => Why does false equal 0?
- Larry Ullman’s Book News => “PHP Advanced and Object-Oriented Programming
I recently StumbledUpon the article You Don’t Know Anything About Regular Expressions: A Complete Guide at Nettuts+. It’s geared towards using Perl-Compatible Regular Expressions (PCRE) in JavaScript, but is useful enough and accessibly written that many might benefit from checking it out. The tutorial starts off with the basic syntax and characters, but then runs through five videos showing their use in action. The rest of the tutorial, which is largely JavaScript code, outlines how you can parse email addresses and URI’s using regular expressions.