<?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 Re: constraining input with regex not working with .0 in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/constraining-input-with-regex-not-working-with-0/m-p/867732#M27381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had the type set to decimal. When I set it to text the regex worked. I adjusted my formulas to convert the value to number and the output is what I would expect to see.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Apr 2019 14:30:29 GMT</pubDate>
    <dc:creator>MikeOnzay</dc:creator>
    <dc:date>2019-04-03T14:30:29Z</dc:date>
    <item>
      <title>constraining input with regex not working with .0</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/constraining-input-with-regex-not-working-with-0/m-p/867730#M27379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to constrain the input of a number that is 1-7 numbers,&amp;nbsp;a decimal point, and one number after the decimal point. If the number after the decimal point is zero it doesn't validate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;regex(.,'^\d{1,7}\.\d{1}$')&lt;/P&gt;&lt;P&gt;regex(.,'^[0-9]{1,7}\.[0-9]{1}$')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;123.0 - invalid&lt;/P&gt;&lt;P&gt;1234567.9 - valid&lt;/P&gt;&lt;P&gt;1.0&amp;nbsp;- invalid&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.1&amp;nbsp;- valid&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2019 14:48:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/constraining-input-with-regex-not-working-with-0/m-p/867730#M27379</guid>
      <dc:creator>MikeOnzay</dc:creator>
      <dc:date>2019-04-02T14:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: constraining input with regex not working with .0</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/constraining-input-with-regex-not-working-with-0/m-p/867731#M27380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to use your second function with a text question for all the examples you provided. &amp;nbsp;A decimal question also validated all but the '123.0' test case - this is because it would be stored as 123&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2019 21:55:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/constraining-input-with-regex-not-working-with-0/m-p/867731#M27380</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-04-02T21:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: constraining input with regex not working with .0</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/constraining-input-with-regex-not-working-with-0/m-p/867732#M27381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had the type set to decimal. When I set it to text the regex worked. I adjusted my formulas to convert the value to number and the output is what I would expect to see.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2019 14:30:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/constraining-input-with-regex-not-working-with-0/m-p/867732#M27381</guid>
      <dc:creator>MikeOnzay</dc:creator>
      <dc:date>2019-04-03T14:30:29Z</dc:date>
    </item>
  </channel>
</rss>

