<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Trouble with Regular Expressions in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/trouble-with-regular-expressions/m-p/45275#M251</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having trouble writing a regular expression to restrict inputs for a text field. &amp;nbsp;I would like to restrict the values to xxxxx-xxx where the "x" are integers. &amp;nbsp;From what I understand, {n} limits to "n" number of values (5 &amp;amp; 3 in this case), however when testing in the form preview, the constraint is satisfied as long as there are "n" or more values. Is there something I am missing? &amp;nbsp;I have attached my excel file, and included my expression below. &amp;nbsp;Any help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regex(.,'[0-9]{5}'+'-'+'[0-9]{3}')&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Dec 2016 21:32:11 GMT</pubDate>
    <dc:creator>JackSackrider</dc:creator>
    <dc:date>2016-12-08T21:32:11Z</dc:date>
    <item>
      <title>Trouble with Regular Expressions</title>
      <link>https://community.esri.com/t5/developers-questions/trouble-with-regular-expressions/m-p/45275#M251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having trouble writing a regular expression to restrict inputs for a text field. &amp;nbsp;I would like to restrict the values to xxxxx-xxx where the "x" are integers. &amp;nbsp;From what I understand, {n} limits to "n" number of values (5 &amp;amp; 3 in this case), however when testing in the form preview, the constraint is satisfied as long as there are "n" or more values. Is there something I am missing? &amp;nbsp;I have attached my excel file, and included my expression below. &amp;nbsp;Any help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regex(.,'[0-9]{5}'+'-'+'[0-9]{3}')&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 21:32:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/trouble-with-regular-expressions/m-p/45275#M251</guid>
      <dc:creator>JackSackrider</dc:creator>
      <dc:date>2016-12-08T21:32:11Z</dc:date>
    </item>
  </channel>
</rss>

