Sara Alag’s Weblog

May 20, 2008

Little Infopath validation rule…

Filed under: Infopath,Sharepoint — saraalag @ 7:12 am

I’ve spent the last couple of weeks on Infopath forms…what an incredible product!!

I had to spend a lot of my time implementing heaps of of validation rules. One that really took me a while was validating email address. So I thought I’d share my little rule here:

You can validate using custom patterns. The pattern I used is:

(\p{L}+_*-*\p{L}*\d*\.?)+@(\p{L}+-*\p{L}*\.?)+

Its not perfect…Im sure you can work around this rule…any feedback is appreciated!

Advertisements

1 Comment »

  1. Good day!,

    Comment by name — September 1, 2008 @ 1:53 am


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: