Regular Expression validators

N

NAT

I want to use regular expression validators for checking if the url entered
is valid. I tried giving "https://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)? " as
custom pattern in Data vaidation of Infopath. But this does not work.
Similarly I tried giving "https://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)? " for
checking Valid email address but this also does not work. Any idea how to use
regular expression validators for checking valid url and valid Email address
in Infopath form ? It seems InfoPath provides patters only for
PhoneNumber,ZipCode n SocialSecurityNumber.For the rest we will have to
create custom patters. So any idea what custom pattern is required for
validating email address and validating url.

Thanks in advance,
 
B

Ben Walters

Hey NAT
I have found this site the best reference when doing Regular expressions
http://www.regular-expressions.info/characters.html

hope this helps

Cheers
Ben

NAT said:
Do we have any such expression for checking valid weburl address ?

NAT said:
I want to use regular expression validators for checking if the url entered
is valid. I tried giving "https://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)? " as
custom pattern in Data vaidation of Infopath. But this does not work.
Similarly I tried giving "https://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)? " for
checking Valid email address but this also does not work. Any idea how to use
regular expression validators for checking valid url and valid Email address
in Infopath form ? It seems InfoPath provides patters only for
PhoneNumber,ZipCode n SocialSecurityNumber.For the rest we will have to
create custom patters. So any idea what custom pattern is required for
validating email address and validating url.

Thanks in advance,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top