<?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 Field calculator - replace values in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/field-calculator-replace-values/m-p/472768#M36908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to have only the numbers out of a string like this: 083310-0002-815/0000.001?&lt;/P&gt;&lt;P&gt;Whats the best possibility?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jul 2015 12:04:34 GMT</pubDate>
    <dc:creator>JohannesBierer</dc:creator>
    <dc:date>2015-07-20T12:04:34Z</dc:date>
    <item>
      <title>Field calculator - replace values</title>
      <link>https://community.esri.com/t5/python-questions/field-calculator-replace-values/m-p/472768#M36908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to have only the numbers out of a string like this: 083310-0002-815/0000.001?&lt;/P&gt;&lt;P&gt;Whats the best possibility?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 12:04:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-calculator-replace-values/m-p/472768#M36908</guid>
      <dc:creator>JohannesBierer</dc:creator>
      <dc:date>2015-07-20T12:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Field calculator - replace values</title>
      <link>https://community.esri.com/t5/python-questions/field-calculator-replace-values/m-p/472769#M36909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johannes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this using the re.sub function.&amp;nbsp; Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import re

def update(field):
&amp;nbsp; return re.sub('[-/.]', '', field)&lt;/PRE&gt;&lt;P&gt;&lt;IMG alt="screen1.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/118193_screen1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:54:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-calculator-replace-values/m-p/472769#M36909</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-11T20:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Field calculator - replace values</title>
      <link>https://community.esri.com/t5/python-questions/field-calculator-replace-values/m-p/472770#M36910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 14:34:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-calculator-replace-values/m-p/472770#M36910</guid>
      <dc:creator>JohannesBierer</dc:creator>
      <dc:date>2015-07-20T14:34:03Z</dc:date>
    </item>
  </channel>
</rss>

