<?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: Remove numbers from Labels in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353961#M20292</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are two versions&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;One plain what you asked for&lt;/LI&gt;&lt;LI&gt;Second with a formated first character ... check the code ..&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Just load as Advanced Python labeling expressions ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;BR /&gt;Guenter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Sep 2014 14:22:16 GMT</pubDate>
    <dc:creator>GünterDörffel</dc:creator>
    <dc:date>2014-09-08T14:22:16Z</dc:date>
    <item>
      <title>Remove numbers from Labels</title>
      <link>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353953#M20284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have labels that contain letters,symbols and numbers : &lt;STRONG&gt;(12/34-5) Name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I would like to remove &lt;STRONG&gt;(12/34-5)&lt;/STRONG&gt; and leave &lt;STRONG&gt;Name&lt;/STRONG&gt; only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 10:02:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353953#M20284</guid>
      <dc:creator>DrMar</dc:creator>
      <dc:date>2014-09-08T10:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Remove numbers from Labels</title>
      <link>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353954#M20285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using the filed calculator and if your numbers are always the same length (in this case 10 characters (including the space before the Name)), you could use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right([Field],length([Field])-10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you could split the field on the space and grab the second part:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Split([Field], " ")(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you would prefer to use python as the parser then there is a good example here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://socalgis.org/2013/12/05/field-calculator-i-just-want-the-third-word/" title="http://socalgis.org/2013/12/05/field-calculator-i-just-want-the-third-word/"&gt;Field Calculator: I just want the third word | SoCalGIS.org&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 10:19:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353954#M20285</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2014-09-08T10:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Remove numbers from Labels</title>
      <link>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353955#M20286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've moved your post into the &lt;A _jive_internal="true" class="jivecontainerTT-hover-container jive-link-community-small" data-containerid="2046" data-containertype="14" data-objectid="2050" data-objecttype="14" href="https://community.esri.com/community/gis/managing-data"&gt;Managing Data&lt;/A&gt; space. You will get a much better answer here as the &lt;A _jive_internal="true" class="jivecontainerTT-hover-container jive-link-community-small" data-containerid="1" data-containertype="14" data-objectid="2004" data-objecttype="14" href="https://community.esri.com/community/help-and-feedback"&gt;GeoNet Help&lt;/A&gt; is intended for community help and feedback. You can see more on the community structure, and what topics are under each space from the following documents:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2004" data-containertype="14" data-objectid="1544" data-objecttype="102" href="https://community.esri.com/docs/DOC-1544"&gt;GeoNet Community Structure&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2004" data-containertype="14" data-objectid="1545" data-objecttype="102" href="https://community.esri.com/docs/DOC-1545"&gt;ArcGIS Discussion Forums Migration Strategy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Timothy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 10:55:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353955#M20286</guid>
      <dc:creator>TimothyHales</dc:creator>
      <dc:date>2014-09-08T10:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Remove numbers from Labels</title>
      <link>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353956#M20287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry my mistake,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format is 123/45-67 (Name) and not all have that format.&lt;/P&gt;&lt;P&gt;Some of them are just Name without numbers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have to lose numbers and brackets&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 10:57:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353956#M20287</guid>
      <dc:creator>DrMar</dc:creator>
      <dc:date>2014-09-08T10:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Remove numbers from Labels</title>
      <link>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353957#M20288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey - best would be to see all the versions of texts in your data. And I assume it is about ArcGIS for Desktop-Labeling? Your solution would look something like this: Take the whole String and filter out the crap. Would be easiest if all Names are in brackets - assuming they are not, try this as a python Advanced labeling expression - changing the [fieldname] in the brackets with your real fieldname:&lt;/P&gt;&lt;P&gt;def FindLabel([theName]):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #get the text in the field&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; txt = [theName]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # if txt has a blank in it (which means it has the date), get rid of it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if " " in txt:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txt=txt.split(' ')[1]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #now do the same with the leading bracket - non-existance is no problem this way&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "(" in txt:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txt=txt.split('(')[1]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #and the ending bracket&amp;nbsp; - non-existance is no problem this way&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ")" in txt:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txt=txt.split(')')[0]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return txt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 11:22:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353957#M20288</guid>
      <dc:creator>GünterDörffel</dc:creator>
      <dc:date>2014-09-08T11:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Remove numbers from Labels</title>
      <link>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353958#M20289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are Names with 2 words so they have space in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking more like this:&lt;/P&gt;&lt;P&gt;replace ) with ""&lt;/P&gt;&lt;P&gt;split at )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I need code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 12:41:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353958#M20289</guid>
      <dc:creator>DrMar</dc:creator>
      <dc:date>2014-09-08T12:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Remove numbers from Labels</title>
      <link>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353959#M20290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you send a table/Feature class with your content – I’ll write the code for you …&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Von: Dr Mar &lt;/P&gt;&lt;P&gt;Gesendet: Monday, September 08, 2014 2:42 PM&lt;/P&gt;&lt;P&gt;An: Dörffel Günter&lt;/P&gt;&lt;P&gt;Betreff: Re:  - Remove numbers from Labels&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GeoNet &amp;lt;http://jiveon.jivesoftware.com/wf/click?upn=Dg1s4x8le7Lmxv8KWGaqo8h7SGfRSMkw-2FpvHGF9-2FW3rK-2Bvs1kL9-2FnG6jjf2NZhrLDz0M-2BrY-2By9IaziQEKVk3Hg-3D-3D_jo6fQuMO5tmmZMbKZISRTYtLRFL6G-2BWYRcHos6w-2Fs9ZjB1NyMC1mkFLIChdVNwcL-2FLcuOruNkNng-2FPgOoQ3P5jjj1yGPI9aV1LJnEBtYv6F7Kkn26CdyXuxYH5Fsbi-2FZWUTc3f0Z6z-2FFgealH1gABh9lJshqwlvE9Y6xXxu5vUI5oDlncYxscwUWk6uX6Pv7uuwOXErxHqPnwbTxduSNJCJT4y-2FVjFLjeGnjXmVGoNlDQl2U5nsOxVnihdNLgL2uSYKubMD63L6R7ZjV0cPGlrRO6wPwlfshCX3bYZLc-2B-2Fu6nTpmP16-2F51szPmNmL74XyxWY12M4pI278-2F8Ry7OXYQ-3D-3D&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove numbers from Labels&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Dr Mar&amp;lt;http://jiveon.jivesoftware.com/wf/click?upn=Dg1s4x8le7Lmxv8KWGaqo7A4BXwO9PY1WvQ5cXCtK4-2F9u3-2FEibE7Tt9Fk4AGtA63Rv7IcOjSP-2BzQWI60cQDFFq-2BB0NH8qz0eStWSjjUfp14-3D_jo6fQuMO5tmmZMbKZISRTYtLRFL6G-2BWYRcHos6w-2Fs9ZjB1NyMC1mkFLIChdVNwcL-2FLcuOruNkNng-2FPgOoQ3P5jjj1yGPI9aV1LJnEBtYv6F7Kkn26CdyXuxYH5Fsbi-2FZWUTc3f0Z6z-2FFgealH1gABk6FibgtJKKXOOdXKsiDwvmbP-2FLa-2Bs69Xyo3JKyin1rbJkY8F4E9OGvMnW8WLweJaDxv8gPZ0yM46HOV-2FvUB5id0knn3MPiK41iC4GF5gcBh4a17skIDcUDK-2FKBdtg-2FoK-2FxUa9uIGYnvZypbl4tAmeqjqVo2d-2FUyOeSDTJInpCzeATzwhwM3aomm3udkaYXzbw-3D-3D&amp;gt; in Managing Data - View the full discussion&amp;lt;http://jiveon.jivesoftware.com/wf/click?upn=Dg1s4x8le7Lmxv8KWGaqo0VQjeJBYpG9HGC8QZBT-2FEyI1eyJe-2Bi9EKx73W52pIjeAE8mTB5dX41nduq8xENU-2Fur2ImyCmcjJ6Wf4YQoywEo-3D_jo6fQuMO5tmmZMbKZISRTYtLRFL6G-2BWYRcHos6w-2Fs9ZjB1NyMC1mkFLIChdVNwcL-2FLcuOruNkNng-2FPgOoQ3P5jjj1yGPI9aV1LJnEBtYv6F7Kkn26CdyXuxYH5Fsbi-2FZWUTc3f0Z6z-2FFgealH1gABpOD000HuA62ja42shrIpPQ3L3ucOib0r4rhfXYD74OcKQ-2BHwqGBZewBQOuIGEbiBTRhBPFg6lPTVp5hWMnJC49dvSbQhYPXsBs3Rbge8ViRdS4Ihp0OBcaR-2F3UN7DMbOvTbPuT12eoNxZLYb4hJ0CndwNrQAcHekRvqe6qM4A7AKVX8nbDZ-2F8muxJWOOKO8xw-3D-3D&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 12:43:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353959#M20290</guid>
      <dc:creator>GünterDörffel</dc:creator>
      <dc:date>2014-09-08T12:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Remove numbers from Labels</title>
      <link>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353960#M20291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a "dummy" table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Names_full is current status and Names_split is how it should be&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 13:42:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353960#M20291</guid>
      <dc:creator>DrMar</dc:creator>
      <dc:date>2014-09-08T13:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Remove numbers from Labels</title>
      <link>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353961#M20292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are two versions&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;One plain what you asked for&lt;/LI&gt;&lt;LI&gt;Second with a formated first character ... check the code ..&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Just load as Advanced Python labeling expressions ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;BR /&gt;Guenter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 14:22:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353961#M20292</guid>
      <dc:creator>GünterDörffel</dc:creator>
      <dc:date>2014-09-08T14:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Remove numbers from Labels</title>
      <link>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353962#M20293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mar,&lt;/P&gt;&lt;P&gt;You can use a label expression. Go to label tab in layer properties and select label expression. use below label expression to create your label (please be mindful of line intend)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14101862729222668 jive_text_macro" jivemacro_uid="_14101862729222668"&gt;
&lt;P&gt;import re&lt;/P&gt;
&lt;P&gt;def FindLabel ( [CODETEMPS]&amp;nbsp; ):&lt;/P&gt;
&lt;P&gt; p = re.search('(?=\()(.*?)(?=\))', [CODETEMPS])&lt;/P&gt;
&lt;P&gt; if p is None:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; return [CODETEMPS]&lt;/P&gt;
&lt;P&gt; else:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; return p.group(0).replace('(','')&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below screenshot of label created using above expression.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/8197_Untitled.png" style="width: 620px; height: 496px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 14:26:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353962#M20293</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-09-08T14:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Remove numbers from Labels</title>
      <link>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353963#M20294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 15:13:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/remove-numbers-from-labels/m-p/353963#M20294</guid>
      <dc:creator>DrMar</dc:creator>
      <dc:date>2014-09-08T15:13:48Z</dc:date>
    </item>
  </channel>
</rss>

