I’ve never been the best at creating regex statements, so I stumbled upon this one in a forum. This regex seems to work when validating email addresses (or web site addresses) if you’re using FS Contact Form for WordPress:
/^(([\w]+:)?\/\/)?(([\d\w]|%[a-fA-f\d]{2,2})+(:([\d\w]|%[a-fA-f\d]{2,2})+)?@)?([\d\w][-\d\w]{0,253}[\d\w]\.)+[\w]{2,4}(:[\d]+)?(\/([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)*(\?(&?([-+_~.\d\w]|%[a-fA-f\d]{2,2})=?)*)?(#([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)?$/
Just paste the above into the “Validation Regex” field and click “Update Options.” Here’s what mine looks like (click image for a larger version):
NOTE: This regex should work for any PHP-based validating that you’re doing (even if you’re not using WordPress with FS Contact Form).
UPDATE: Silly of me not to have noticed this before, but there’s already a built-in email validation option in FS Contact Form. Just select “email” from the drop-down and you’re good to go (click for a larger image):
Be heard... Be the first commenter!