<?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: Find and replace a character within a field in geodatabase in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/find-and-replace-a-character-within-a-field-in/m-p/467246#M26685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Special characters will be incorporated in the next build...they were omitted to ensure that the backslash ( \ ) wouldn't be encountered during a Python query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2014 10:28:07 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2014-07-08T10:28:07Z</dc:date>
    <item>
      <title>Find and replace a character within a field in geodatabase</title>
      <link>https://community.esri.com/t5/data-management-questions/find-and-replace-a-character-within-a-field-in/m-p/467244#M26683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I have a geodatabase with many features with tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use a tool that splits a features by attribute&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(build by Dan_Patterson,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=37AEB018-1422-2418-A036-CA6D9920F808" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=37AEB018-1422-2418-A036-CA6D9920F808&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same field I use have a comma(,) in it and the tool Dan build cannot work with that.&lt;/P&gt;&lt;P&gt;For now I use the find and replace from the table options to make de "," a "_". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a tool or script that will do the search and replace in my geadatabase for all features?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you and Greetings Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 09:17:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/find-and-replace-a-character-within-a-field-in/m-p/467244#M26683</guid>
      <dc:creator>PeterVersteeg</dc:creator>
      <dc:date>2014-07-08T09:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Find and replace a character within a field in geodatabase</title>
      <link>https://community.esri.com/t5/data-management-questions/find-and-replace-a-character-within-a-field-in/m-p/467245#M26684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not aware of a built in tool that can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you program in Python?&amp;nbsp; You could create a cursor that cycles through a workspace then get the attribute table and run some sort of update cursor on the specified field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Duncan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 10:22:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/find-and-replace-a-character-within-a-field-in/m-p/467245#M26684</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2014-07-08T10:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Find and replace a character within a field in geodatabase</title>
      <link>https://community.esri.com/t5/data-management-questions/find-and-replace-a-character-within-a-field-in/m-p/467246#M26685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Special characters will be incorporated in the next build...they were omitted to ensure that the backslash ( \ ) wouldn't be encountered during a Python query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 10:28:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/find-and-replace-a-character-within-a-field-in/m-p/467246#M26685</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-07-08T10:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Find and replace a character within a field in geodatabase</title>
      <link>https://community.esri.com/t5/data-management-questions/find-and-replace-a-character-within-a-field-in/m-p/467247#M26686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Wouldn't it be possible to just use CalculateField with a small script code block to replace the commas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Expression: "Recode(!FIELDNAME!)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;ExpressionType = "PYTHON_9.3" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Block:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;def Recode(input):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output = input.replace(',', '_')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return output&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5; font-family: arial, helvetica, sans-serif;"&gt;This could be wrapped in code to iterate feature classes and fields for an entire geodatabase if needed...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 10:45:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/find-and-replace-a-character-within-a-field-in/m-p/467247#M26686</guid>
      <dc:creator>HåvardMoe</dc:creator>
      <dc:date>2014-07-08T10:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Find and replace a character within a field in geodatabase</title>
      <link>https://community.esri.com/t5/data-management-questions/find-and-replace-a-character-within-a-field-in/m-p/467248#M26687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 8pt; font-family: Helvetica, sans-serif;"&gt;Thank you all for the fast reply. I will be on the lookout for your new build Dan. But in the meantime I will try the script and make a model.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 11:41:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/find-and-replace-a-character-within-a-field-in/m-p/467248#M26687</guid>
      <dc:creator>PeterVersteeg</dc:creator>
      <dc:date>2014-07-08T11:41:17Z</dc:date>
    </item>
  </channel>
</rss>

