<?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 all characters before a certain character with Python using Field Calculator in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/remove-all-characters-before-a-certain-character/m-p/197899#M15165</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank worked Kevin, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Nov 2017 21:29:03 GMT</pubDate>
    <dc:creator>Brian_McLeer</dc:creator>
    <dc:date>2017-11-29T21:29:03Z</dc:date>
    <item>
      <title>Remove all characters before a certain character with Python using Field Calculator</title>
      <link>https://community.esri.com/t5/python-questions/remove-all-characters-before-a-certain-character/m-p/197897#M15163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a series of strings that I need to eliminate a series of text. The text can be variable in length, so doing any trim or strip functions will not work. The string is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&lt;SPAN style="font-size: 13px;"&gt;&amp;lt;img src="X:\UB_Routing\images\ServiceOrders\150 E MAIN ST.png"&amp;gt;&amp;lt;br&amp;gt;150 E MAIN ST&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN style="font-size: 13px;"&gt;&lt;STRONG&gt;&amp;lt;img src="X:\UB_Routing\images\ServiceOrders\3207 SE ROSESPRING DR.png"&amp;gt;&amp;lt;br&amp;gt;3207 SE ROSESPRING DR&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;As a few examples, but they can be any address.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a Python field calculator solution to remove everything before and including the value of&amp;nbsp;&lt;STRONG&gt;&amp;lt;br&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;From the examples above, the only values left would be:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;150 E MAIN&amp;nbsp;ST&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3207 SE ROSESPRING DR&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 21:13:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remove-all-characters-before-a-certain-character/m-p/197897#M15163</guid>
      <dc:creator>Brian_McLeer</dc:creator>
      <dc:date>2017-11-29T21:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all characters before a certain character with Python using Field Calculator</title>
      <link>https://community.esri.com/t5/python-questions/remove-all-characters-before-a-certain-character/m-p/197898#M15164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using&lt;/P&gt;&lt;P&gt;!FieldName![!&lt;SPAN&gt;FieldName&lt;/SPAN&gt;!.rindex('&amp;gt;')+1:]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 21:24:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remove-all-characters-before-a-certain-character/m-p/197898#M15164</guid>
      <dc:creator>KevinDunlop</dc:creator>
      <dc:date>2017-11-29T21:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all characters before a certain character with Python using Field Calculator</title>
      <link>https://community.esri.com/t5/python-questions/remove-all-characters-before-a-certain-character/m-p/197899#M15165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank worked Kevin, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 21:29:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remove-all-characters-before-a-certain-character/m-p/197899#M15165</guid>
      <dc:creator>Brian_McLeer</dc:creator>
      <dc:date>2017-11-29T21:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all characters before a certain character with Python using Field Calculator</title>
      <link>https://community.esri.com/t5/python-questions/remove-all-characters-before-a-certain-character/m-p/197900#M15166</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;my_string &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'&amp;lt;img src="X:\UB_Routing\images\ServiceOrders\150 E MAIN ST.png"&amp;gt;&amp;lt;br&amp;gt;150 E MAIN ST'&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; my_string&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;split&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'&amp;lt;br&amp;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="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

&lt;SPAN class="number token"&gt;150&lt;/SPAN&gt; E MAIN ST
&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:53:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remove-all-characters-before-a-certain-character/m-p/197900#M15166</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-11T09:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all characters before a certain character with Python using Field Calculator</title>
      <link>https://community.esri.com/t5/python-questions/remove-all-characters-before-a-certain-character/m-p/1000602#M59017</link>
      <description>&lt;P&gt;Nice solution! I've been trying to repurpose this to remove all characters AFTER a certain character, but I'm stuck. Could you help, please?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 10:15:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remove-all-characters-before-a-certain-character/m-p/1000602#M59017</guid>
      <dc:creator>YusefSamari</dc:creator>
      <dc:date>2020-11-12T10:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all characters before a certain character with Python using Field Calculator</title>
      <link>https://community.esri.com/t5/python-questions/remove-all-characters-before-a-certain-character/m-p/1179645#M64700</link>
      <description>&lt;P&gt;I was looking for that too and I found it on another thread (&lt;A href="https://community.esri.com/t5/arcmap-questions/removing-text-after-comma/m-p/330225" target="_self"&gt;Removing text after comma&lt;/A&gt;).&amp;nbsp; I was trying to remove characters after a &amp;amp;.&amp;nbsp; I'm not sure the link will link to the thread.&lt;/P&gt;&lt;PRE&gt;!YourFieldName!.split(",")[0] ‍&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 22:07:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remove-all-characters-before-a-certain-character/m-p/1179645#M64700</guid>
      <dc:creator>DianaRathfelder2</dc:creator>
      <dc:date>2022-06-02T22:07:32Z</dc:date>
    </item>
  </channel>
</rss>

