<?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: how to slice a label field in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-slice-a-label-field/m-p/531307#M41611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the "Label Expression" window, with Python selected as the Parser, type:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;[Name].lstrip('ID']&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should remove ID from all of your labels.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2014 15:24:47 GMT</pubDate>
    <dc:creator>RussellHooper</dc:creator>
    <dc:date>2014-06-24T15:24:47Z</dc:date>
    <item>
      <title>how to slice a label field</title>
      <link>https://community.esri.com/t5/python-questions/how-to-slice-a-label-field/m-p/531305#M41609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a field 'Name' where the first two letters of every string are 'ID'. Following 'ID' are between 1 and 2 characters, for example 'ID1' or 'ID11'. I want to create a label expression for arcGIS 10 that slices everything after ID. In python this is something like Name [2:] to return everything after the 2nd character. The label expression generator, however, only takes VBscript. Does anyone know what to do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 23:56:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-slice-a-label-field/m-p/531305#M41609</guid>
      <dc:creator>wilfredwaters</dc:creator>
      <dc:date>2011-02-16T23:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to slice a label field</title>
      <link>https://community.esri.com/t5/python-questions/how-to-slice-a-label-field/m-p/531306#M41610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i fixed it by manually making a new field then field calculating it with !name![2:] (python was turned on as the parser. argGIS should allow a python parser in the expression generator&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 01:10:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-slice-a-label-field/m-p/531306#M41610</guid>
      <dc:creator>wilfredwaters</dc:creator>
      <dc:date>2011-02-17T01:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to slice a label field</title>
      <link>https://community.esri.com/t5/python-questions/how-to-slice-a-label-field/m-p/531307#M41611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the "Label Expression" window, with Python selected as the Parser, type:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;[Name].lstrip('ID']&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should remove ID from all of your labels.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 15:24:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-slice-a-label-field/m-p/531307#M41611</guid>
      <dc:creator>RussellHooper</dc:creator>
      <dc:date>2014-06-24T15:24:47Z</dc:date>
    </item>
  </channel>
</rss>

