<?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 claims my regex is not valid pattern but it's straight from a book. Why?</title><link>https://www.infopathdev.com:443/forums/thread/81934.aspx</link><pubDate>Fri, 24 Aug 2012 09:19:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81934</guid><dc:creator>IceThatJaw</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81934.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81934</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Nice catch. I updated the regex to also handle a decimal format.&lt;/p&gt;&lt;p&gt;&amp;nbsp;[\(.]?[2-9]\d\d[\).]?[ \-]?[2-9]\d\d[\-.]\d{4} &amp;nbsp; &lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;u&gt;Matches: &lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;200-200-0000&lt;/p&gt;&lt;p&gt;(200)200-0000&lt;/p&gt;&lt;p&gt;(200) 200-0000&lt;/p&gt;&lt;p&gt;200.200.0000 &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;/p&gt;&lt;p&gt;Thanks and everyone should definitely use this expression rather than the built in one for US phone numbers.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Infopath claims my regex is not valid pattern but it's straight from a book. Why?</title><link>https://www.infopathdev.com:443/forums/thread/81931.aspx</link><pubDate>Fri, 24 Aug 2012 06:47:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81931</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81931.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81931</wfw:commentRss><description>Looks like you need to use a backslash before hyphens.&amp;nbsp; Perhaps the people who designed this regex parser thought it would be better that way because hyphens sometimes have&amp;nbsp;a semantic meaning in regular expressions.</description></item><item><title>Infopath claims my regex is not valid pattern but it's straight from a book. Why?</title><link>https://www.infopathdev.com:443/forums/thread/81925.aspx</link><pubDate>Fri, 24 Aug 2012 00:46:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81925</guid><dc:creator>IceThatJaw</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81925.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81925</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t particularly like the built in phone number regex because it only matches one format. I have a niftly regex handbook with a great one for US phone&amp;nbsp;numbers. Regex = \(?[2-9]\d\d\)?[ -]?[2-9]\d\d-\d{4}&lt;/p&gt;&lt;p&gt;This allows for 000-000-0000, (000) 000-0000, and (000)000-0000.&lt;/p&gt;&lt;p&gt;&amp;nbsp;When I make a rule and do a match based on&amp;nbsp;this custom pattern it says it&amp;#39;s not a valid pattern when I try to enter it. Any ideas?&lt;/p&gt;</description></item></channel></rss>