Site structure
Version 3.x > Site structure > Regular Expressions w/BizForms View modes: 
User avatar
Member
Member
imuir@amplifystudios.com - 4/18/2008 1:56:13 PM
   
Regular Expressions w/BizForms
I'm trying to create a validation expression for a BizForm, but it doesn't seem to be working.

I need to validate an e-mail address. The rendering of the default email input has no label, so we are using a regular text input.

When I use this regex, \w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*, which should recognize an email address, it always fails. This is a bit perplexing because this has worked for us on dozens of other sites.

Any ideas about what's going on?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/14/2008 8:26:02 AM
   
RE:Regular Expressions w/BizForms
Hi,
you need to use ^ sign at the beginning of the regular expression and $ sign at the end. I hope that it will help.

Best Regards,
Juraj Ondrus