<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>InfoPath: Text Box field validation with multiple patterns</title><link>https://www.infopathdev.com:443/forums/thread/104678.aspx</link><pubDate>Wed, 11 Nov 2015 11:20:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104678</guid><dc:creator>eabrc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104678.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=104678</wfw:commentRss><description>Hello everyone,

I have been searching for an answer to this but could not find any suggestions that would work for me. I would be really grateful if anyone could let me know how to achieve the following... I have a text box in a form and I need the users to enter the text in these specific formats: &amp;quot;REQ\d\d\d\d\d\d\d-\d&amp;quot; or &amp;quot;REQ\d\d\d\d\d\d\d-\d\d&amp;quot; or &amp;quot;INC\d\d\d\d\d\d\d\d\d\d&amp;quot; and cannot be blank. The &amp;quot;REQ&amp;quot; and &amp;quot;INC&amp;quot; can be either lower or upper case, but there shouldn&amp;#39;t be any blank spaces anywhere in the reference.

I have tried using the validation rules (&amp;quot;does not match pattern&amp;quot; with &amp;quot;or&amp;quot;/&amp;quot;and&amp;quot; for each expression) but it didn&amp;#39;t work. I also tried using the &amp;quot;The expression&amp;quot; (not(xdUtil:Match(string(.), &amp;quot;REQ\d\d\d\d\d\d\d-\d&amp;quot;), etc.) and it also didn&amp;#39;t work...

Could my pattern be achieved?</description></item></channel></rss>