<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Validating text field for email addresses</title><link>https://www.infopathdev.com:443/forums/thread/116617.aspx</link><pubDate>Sat, 01 Jul 2017 17:19:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116617</guid><dc:creator>mindea</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116617.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=116617</wfw:commentRss><description>Yes, that worked perfectly. I was expecting something more complicated. Thank you very much!</description></item><item><title>Re: Validating text field for email addresses</title><link>https://www.infopathdev.com:443/forums/thread/116583.aspx</link><pubDate>Wed, 28 Jun 2017 15:13:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116583</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116583.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=116583</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You may have already gotten this, but wouldn&amp;#39;t it be:&lt;/p&gt;&lt;p&gt;([a-zA-Z0-9_\-\.]+)@xyz.com(\s*,\s*([a-zA-Z0-9_\-\.]+)@xyz.com)*&amp;nbsp;&lt;/p&gt;</description></item><item><title>Validating text field for email addresses</title><link>https://www.infopathdev.com:443/forums/thread/116554.aspx</link><pubDate>Fri, 23 Jun 2017 21:47:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116554</guid><dc:creator>mindea</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116554.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=116554</wfw:commentRss><description>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 joe@blow.com or joe@blow.com,jane@doe.com

I&amp;#39;d like to take this a step further and only allow email addresses for a specific domain, xyz.com, but I can&amp;#39;t figure it out. Here&amp;#39;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.</description></item></channel></rss>