<?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: Isdigit code for addresses in Addressing Questions</title>
    <link>https://community.esri.com/t5/addressing-questions/isdigit-code-for-addresses/m-p/805755#M197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Aug 2017 12:24:48 GMT</pubDate>
    <dc:creator>EmmanuelJohn1</dc:creator>
    <dc:date>2017-08-08T12:24:48Z</dc:date>
    <item>
      <title>Isdigit code for addresses</title>
      <link>https://community.esri.com/t5/addressing-questions/isdigit-code-for-addresses/m-p/805751#M193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; What would be the field calculator script code to only extract the numbers and nothing else from the fieldname column to hnum column?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 18:15:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/addressing-questions/isdigit-code-for-addresses/m-p/805751#M193</guid>
      <dc:creator>EmmanuelJohn1</dc:creator>
      <dc:date>2017-08-07T18:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Isdigit code for addresses</title>
      <link>https://community.esri.com/t5/addressing-questions/isdigit-code-for-addresses/m-p/805752#M194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;a &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'12ab34cd5'&lt;/SPAN&gt;
b &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; int&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; a &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; i&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;isnumeric&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# in field calculator&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# python parser of course&lt;/SPAN&gt;
int&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; !YourFieldNameHere! &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; i&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;isnumeric&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:23:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/addressing-questions/isdigit-code-for-addresses/m-p/805752#M194</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T09:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Isdigit code for addresses</title>
      <link>https://community.esri.com/t5/addressing-questions/isdigit-code-for-addresses/m-p/805753#M195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a thread I started some time ago:&amp;nbsp; &lt;A href="https://community.esri.com/thread/163731"&gt;https://community.esri.com/thread/163731&lt;/A&gt; It might give some insight to using Python to parse out address components. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something I noticed in your sample data and it's quite common with address data, and that is the lack of consistency. Your third record has no house number; I realize it's probably a dummy record but those kinds of inconsistencies need to be handled or your parser will error out once it hits a line like that.&amp;nbsp; So either make sure your data is clean, or trap errors in your script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 19:16:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/addressing-questions/isdigit-code-for-addresses/m-p/805753#M195</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2017-08-07T19:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Isdigit code for addresses</title>
      <link>https://community.esri.com/t5/addressing-questions/isdigit-code-for-addresses/m-p/805754#M196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joe ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Yes, you are correct. There can also be other values that are completely blank which can cause further issues. But for what i was trying to do it was helpful to get an idea for where to start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan's code was helpful for the start, which helped me make labels from Label Expression Window instead of having to maintain a new field. This was mainly for Home Number Label service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;int("".join((i for i in [YourField] if i.isnumeric())))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression neglects all the blank values, and the fields without the numbers in them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 12:24:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/addressing-questions/isdigit-code-for-addresses/m-p/805754#M196</guid>
      <dc:creator>EmmanuelJohn1</dc:creator>
      <dc:date>2017-08-08T12:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Isdigit code for addresses</title>
      <link>https://community.esri.com/t5/addressing-questions/isdigit-code-for-addresses/m-p/805755#M197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 12:24:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/addressing-questions/isdigit-code-for-addresses/m-p/805755#M197</guid>
      <dc:creator>EmmanuelJohn1</dc:creator>
      <dc:date>2017-08-08T12:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Isdigit code for addresses</title>
      <link>https://community.esri.com/t5/addressing-questions/isdigit-code-for-addresses/m-p/805756#M198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no problem Emmanuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 14:28:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/addressing-questions/isdigit-code-for-addresses/m-p/805756#M198</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-08-08T14:28:44Z</dc:date>
    </item>
  </channel>
</rss>

