<?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: Regex for dimensions (length x width x height) in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/regex-for-dimensions-length-x-width-x-height/m-p/1229146#M45905</link>
    <description>&lt;P&gt;Hey, this is great, that explanation is so helpful! The only problem is that Survey123 Connect is giving me the below error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_3-1667830282009.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55389i9C603576E1C8BD41/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_3-1667830282009.png" alt="ZachBodenner_3-1667830282009.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ZachBodenner_3-1667830282009.png&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_4-1667830303459.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55390i9F72305A51ECA44B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_4-1667830303459.png" alt="ZachBodenner_4-1667830303459.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ZachBodenner_4-1667830303459.png&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_5-1667830322471.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55391i1022CDEF90D93863/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_5-1667830322471.png" alt="ZachBodenner_5-1667830322471.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ZachBodenner_5-1667830322471.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the xls form with the regex in the constraint column:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_6-1667830339374.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55392i3CA55F580E2A7FC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_6-1667830339374.png" alt="ZachBodenner_6-1667830339374.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ZachBodenner_6-1667830339374.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2022 14:12:25 GMT</pubDate>
    <dc:creator>ZachBodenner</dc:creator>
    <dc:date>2022-11-07T14:12:25Z</dc:date>
    <item>
      <title>Regex for dimensions (length x width x height)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/regex-for-dimensions-length-x-width-x-height/m-p/1228892#M45886</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm looking for a regex expression that would restrict a text entry to length x width x height style dimensions. Ideally, no limits to the number of digits available in the number part of the dimensions, x can be either lower or upper case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not super well versed in regex. I've managed to find good expressions from ESRI to get regex for email input to work&amp;nbsp;, but I'm struggling with this one. I've used this stack overflow threat as reference but none have been successful:&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/39452200/match-product-dimensions-with-regular-expression" target="_blank"&gt;https://stackoverflow.com/questions/39452200/match-product-dimensions-with-regular-expression&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 20:39:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/regex-for-dimensions-length-x-width-x-height/m-p/1228892#M45886</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2022-11-04T20:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for dimensions (length x width x height)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/regex-for-dimensions-length-x-width-x-height/m-p/1228951#M45896</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/80456"&gt;@ZachBodenner&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;The basic pattern you're looking for has the following components in sequence:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Some amount of number characters (at least 1 character and possibly with the appropriate decimal separator for you region)&lt;/LI&gt;&lt;LI&gt;' x ', where the spaces may be optional&lt;/LI&gt;&lt;LI&gt;More number characers&lt;/LI&gt;&lt;LI&gt;Another ' x '&lt;/LI&gt;&lt;LI&gt;More number characters&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Each of those parts has a corresponding part of the overall regex pattern.&amp;nbsp; I'm going to assume a period (.) is the appropriate decimal separator in the example below:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;A decimal number: (\d+\.?\d*)&lt;OL&gt;&lt;LI&gt;( ) group everything together&lt;/LI&gt;&lt;LI&gt;\d is a digit character&lt;/LI&gt;&lt;LI&gt;+ is used to match 1 or more numeric characters&lt;/LI&gt;&lt;LI&gt;\. matches a period (which is a special character in regex and needs the \ to make it match as a character)&lt;/LI&gt;&lt;LI&gt;? is used to match 0 or 1 instance of the period (so 2 periods in a row will fail the match)&lt;/LI&gt;&lt;LI&gt;\d matches number characters (the decimal portion)&lt;/LI&gt;&lt;LI&gt;* matches 0 or more numeric characters (so that integers without decimals are supported)&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;' x ': (\s?x\s?)&lt;OL&gt;&lt;LI&gt;( ) groups everything together&lt;/LI&gt;&lt;LI&gt;\s matches a white space character (like space)&lt;/LI&gt;&lt;LI&gt;? is used to match 0 or 1 instance of the white space character (so 2 spaces in a row will fail the match)&lt;/LI&gt;&lt;LI&gt;x is the character 'x'&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Placing them together to get:&lt;/P&gt;&lt;P&gt;(\d+\.?\d*)(\s?x\s?)(\d+\.?\d*)(\s?x\s?)(\d+\.?\d*)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 22:41:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/regex-for-dimensions-length-x-width-x-height/m-p/1228951#M45896</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2022-11-04T22:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for dimensions (length x width x height)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/regex-for-dimensions-length-x-width-x-height/m-p/1229146#M45905</link>
      <description>&lt;P&gt;Hey, this is great, that explanation is so helpful! The only problem is that Survey123 Connect is giving me the below error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_3-1667830282009.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55389i9C603576E1C8BD41/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_3-1667830282009.png" alt="ZachBodenner_3-1667830282009.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ZachBodenner_3-1667830282009.png&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_4-1667830303459.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55390i9F72305A51ECA44B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_4-1667830303459.png" alt="ZachBodenner_4-1667830303459.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ZachBodenner_4-1667830303459.png&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_5-1667830322471.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55391i1022CDEF90D93863/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_5-1667830322471.png" alt="ZachBodenner_5-1667830322471.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ZachBodenner_5-1667830322471.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the xls form with the regex in the constraint column:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_6-1667830339374.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55392i3CA55F580E2A7FC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_6-1667830339374.png" alt="ZachBodenner_6-1667830339374.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ZachBodenner_6-1667830339374.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 14:12:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/regex-for-dimensions-length-x-width-x-height/m-p/1229146#M45905</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2022-11-07T14:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for dimensions (length x width x height)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/regex-for-dimensions-length-x-width-x-height/m-p/1229163#M45907</link>
      <description>&lt;P&gt;Update: it worked when I structured it this way:&lt;/P&gt;&lt;P&gt;regex(., '^(\d+\.?\d*)(\s?x\s?)(\d+\.?\d*)(\s?x\s?)(\d+\.?\d*)')&lt;/P&gt;&lt;P&gt;I used the email regex formatting as reference and added (.,'^ to the beggining.&lt;/P&gt;&lt;P&gt;Sidenote, what would my syntax be if I wanted the "x" to be either caps or lower case? The current format seems to mandate lower case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 14:32:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/regex-for-dimensions-length-x-width-x-height/m-p/1229163#M45907</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2022-11-07T14:32:43Z</dc:date>
    </item>
  </channel>
</rss>

