Just a tidbit of regex I am using on a current project.
Ever needed to match a phone number with a piece of regex?
/([0,1]{1})?([-| |.]+)?(?([0-9]{1,3}))?([-| |.]+)??([0-9]{3})([-| |.]?)+([0-9]{4})/
What does it do? It matches a phone number from (520) 444-4444, 429-333-3333 and a few other combinations. Check it out, try it!
If you can think of other combinations, let me know, I’ll update the regex ![]()
UPDATE
Just to let ya know… Here is the rspec for the phone number regex. I’m sure there are more.

Cool!
coming up…
- Plugins (coming soon!)
- A piece of wisdom about RMagick/ImageMagick (you don’t wanna miss this one)
- A comment about being a freelancer
- and more!
Since Wordpress is pretty dumb, I’ve attached it as a document. You can fetch it here:
UPDATED
I think I’ll rewrite this blog in Sinatra.
