<?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: Removing part of a field using another in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/removing-part-of-a-field-using-another/m-p/110882#M8617</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The image isn't opening in my browser (Edge for Windows 10) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Apr 2016 13:32:29 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2016-04-06T13:32:29Z</dc:date>
    <item>
      <title>Removing part of a field using another</title>
      <link>https://community.esri.com/t5/python-questions/removing-part-of-a-field-using-another/m-p/110881#M8616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to figure out how to remove the SECONDARYN street name from the IntersectionList field so that I'm only left with the street names other than what's in the SECONDARYN field.&amp;nbsp; I've attached a screenshot here.&amp;nbsp; I'm very, very new to Python so I would love some feedback and guidance on completing this task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://i.imgur.com/plSSOHU.png" title="http://i.imgur.com/plSSOHU.png"&gt;http://i.imgur.com/plSSOHU.png&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 13:19:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/removing-part-of-a-field-using-another/m-p/110881#M8616</guid>
      <dc:creator>HeatherHerrmann2</dc:creator>
      <dc:date>2016-04-06T13:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Removing part of a field using another</title>
      <link>https://community.esri.com/t5/python-questions/removing-part-of-a-field-using-another/m-p/110882#M8617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The image isn't opening in my browser (Edge for Windows 10) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 13:32:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/removing-part-of-a-field-using-another/m-p/110882#M8617</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-04-06T13:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Removing part of a field using another</title>
      <link>https://community.esri.com/t5/python-questions/removing-part-of-a-field-using-another/m-p/110883#M8618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this better?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SJdvPC" class="image-1 jive-image" src="http://goo.gl/SJdvPC" style="width: 620px; height: 403px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 13:36:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/removing-part-of-a-field-using-another/m-p/110883#M8618</guid>
      <dc:creator>HeatherHerrmann2</dc:creator>
      <dc:date>2016-04-06T13:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Removing part of a field using another</title>
      <link>https://community.esri.com/t5/python-questions/removing-part-of-a-field-using-another/m-p/110884#M8619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;conceptually&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; a = "ALTAVISA LOOP"
&amp;gt;&amp;gt;&amp;gt; b = "ALTAVISA LOOP &amp;amp; more stuff"
&amp;gt;&amp;gt;&amp;gt; c = b.replace(a+" &amp;amp; ","")
&amp;gt;&amp;gt;&amp;gt; c
'more stuff'
&amp;gt;&amp;gt;&amp;gt;&lt;/PRE&gt;&lt;P&gt;in terms of field calculator stuff add a new field and give it new name and do the calculations in it&lt;/P&gt;&lt;P&gt;ie NewList&lt;/P&gt;&lt;P&gt;use the python parser and the following expression in the field calculator&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;!IntersectionList!.replace(!SECONDARYN! + " &amp;amp; ", "")&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If every record holds to the given format&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:39:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/removing-part-of-a-field-using-another/m-p/110884#M8619</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T06:39:59Z</dc:date>
    </item>
  </channel>
</rss>

