<?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>Re: Infopath validation - simple Q</title><link>https://www.infopathdev.com:443/forums/thread/124559.aspx</link><pubDate>Fri, 05 Nov 2021 17:52:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124559</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124559.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124559</wfw:commentRss><description>Awesome - thanks for adding these details! :)</description></item><item><title>Re: Infopath validation - simple Q</title><link>https://www.infopathdev.com:443/forums/thread/124558.aspx</link><pubDate>Fri, 05 Nov 2021 17:36:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124558</guid><dc:creator>Daryl K</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124558.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124558</wfw:commentRss><description>Also, for anyone else that reads this: I figured out what my error was with the previous format. The &amp;quot;zero or one,&amp;quot; &amp;quot;zero or more&amp;quot; and &amp;quot;one or more&amp;quot; are &lt;i&gt;modifiers&lt;/i&gt;, which must be added after the character pattern identifier.&lt;br /&gt;&lt;br /&gt;

For example, I was also trying to figure out how to require 4 numbers, with the option (not required) of an alpha afterwards. The proper way to enter this would be &lt;b&gt;\d\d\d\d\p{L}?&lt;/b&gt;, where &lt;b&gt;\d\d\d\d&lt;/b&gt; requires four numbers, &lt;b&gt;\p{L}&lt;/b&gt; is one letter, but the &lt;b&gt;?&lt;/b&gt; is a modifier, meaning it will accept 0 or 1 instances of the letter. &lt;br /&gt;&lt;br /&gt;

In my first query the (other) way to do it would have been &lt;b&gt;\d\d\d\d\d\d?&lt;/b&gt;, where the &lt;b&gt;?&lt;/b&gt; modifies the last number requirement, saying 0 or 1 instance is OK. in others words, 5 or 6 numbers would be accepted.</description></item><item><title>Re: Infopath validation - simple Q</title><link>https://www.infopathdev.com:443/forums/thread/124557.aspx</link><pubDate>Fri, 05 Nov 2021 00:38:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124557</guid><dc:creator>Daryl K</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124557.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124557</wfw:commentRss><description>Dang - it works great for me too! I wasn&amp;#39;t even aware that was a valid way to type the validation formula (and apparently was using the wrong search terms since I never came across the article you cited).&lt;br /&gt;&lt;br /&gt;

As always Hilary you are awesome and I thank you for your help!</description></item><item><title>Re: Infopath validation - simple Q</title><link>https://www.infopathdev.com:443/forums/thread/124556.aspx</link><pubDate>Thu, 04 Nov 2021 21:33:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124556</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124556.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124556</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;This seems to work:&lt;/p&gt;&lt;p&gt;\d{5,6}&lt;/p&gt;&lt;p&gt;Found here: &lt;a href="https://stackoverflow.com/questions/7864971/regular-expression-for-number-with-length-of-4-5-or-6"&gt;https://stackoverflow.com/questions/7864971/regular-expression-for-number-with-length-of-4-5-or-6&lt;/a&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Infopath validation - simple Q</title><link>https://www.infopathdev.com:443/forums/thread/124554.aspx</link><pubDate>Thu, 04 Nov 2021 21:10:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124554</guid><dc:creator>Daryl K</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124554.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124554</wfw:commentRss><description>I am trying to do a basic validation in Infopath for a field that can only be a pattern of 5 or 6 numbers. I understand how to do the Data Entry Pattern validations, and 5 digits would be &lt;b&gt;\d\d\d\d\d&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;

What I am having trouble with is the option of a sixth character. It may be there, it may not. Both are acceptable. If I use &lt;b&gt;\d\d\d\d\d?&lt;/b&gt; it accepts 5 numbers but gives validation error on 6. The &amp;quot;special characters&amp;quot; lists &amp;quot;?&amp;quot; as &amp;quot;0 or 1&amp;quot; but it doesn&amp;#39;t seem to work.&lt;br /&gt;&lt;br /&gt;

Is this option broken? Is there something I am missing?</description></item></channel></rss>