I found an excellent post here http://www.infopathdev.com/forums/t/26687.aspx that shows how to set validation on a text field such that it only allows (one or more) email addresses (separated by a comma). Like
[email protected] or
[email protected],
[email protected]
I'd like to take this a step further and only allow email addresses for a specific domain, xyz.com, but I can't figure it out. Here's the validation string
([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\s*,\s*([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3}))*
How would I modify this to only allow (one or more) email addresses (separated by a comma) for xyz.com?
Many thanks.