Home > Programming, php, php Snippets > REGEX Library

REGEX Library

I was working up a form and needed to come up with an email regex. I know by now I probably should have my own regex library, or even be able to write my own – but I haven’t exercised my regex skills enough. Often time doesn’t allow an extensive learning period when your already half way through creating a form!

I came across this great regex library at regexlib.com. It’s searchable, offers on the fly tests of user contibuted regular expresssions, rss feeds of recently added patterns, and contains a Cheat Sheet for regex reference.

Of course, programmer beware. Be careful copying and pasting code. And definately test that code before you implement it.

regex, php

Categories: Programming, php, php Snippets Tags:
  1. March 24th, 2006 at 10:13 | #1

    If you find the expression you need the great but good luck. Unless you are doing something common more than likely you should just write your own. Just sayin;)

  2. March 31st, 2006 at 08:24 | #2

    Thanks for popping by Jimbo. I agree – but sometimes time doesn’t allow me to properly learn and code one up right away. So grabbing a quick email validation regex can temporarily get me by ;)

  1. No trackbacks yet.