Lists, Email Addresses, Regular Expressions

In belated celebration of the newly declared "Regular Expression Day", I thought I would cover just one of the many way in which regular expressions makes my life easier.

When I read Ben's entry and saw that he uses regular expressions every week, I thought "I don't use them that often". Within in hour of that thought, however, I was on the phone with a fellow programmer discussing a problem for which regular expressions was a great solution.

[More]

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
your first regex is probably too simplistic. although it will do for most cases, what happens when it gets something like john.smith+sebtools@gmail.com? it'll turn it into john.smith,sebtools@gmail.com.
see: http://en.wikipedia.org/wiki/E-mail_address for a list of valid characters
# Posted By duncan | 6/5/08 12:20 AM
Duncan,

Thanks! I suspected someone more knowledgeable might have a suggestion on how to improve the regex. We will certainly expand based on that reference.

Thanks for the help.
# Posted By Steve Bryant | 6/5/08 5:53 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.8.001.