<?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 do I replace the first character of a string using calculate field in ArcGIS Pro? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-replace-the-first-character-of-a-string/m-p/731958#M32170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although you asked a follow-up question, Dan addressed your first question.&amp;nbsp; Please mark his response as Correct to close out the question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2020 18:08:57 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2020-07-28T18:08:57Z</dc:date>
    <item>
      <title>How do I replace the first character of a string using calculate field in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-replace-the-first-character-of-a-string/m-p/731955#M32167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pretty simple question I'm sure for the Python people out there. I have a field, FACILITY ID, that is populated as string values as 00001,00002, 00003, and so on. All values in the field are 5 characters long. I want to change the first number in to a 1 so the values of the field look like 10001, 10002, 10003, etc. I'm pretty sure i should use the .replace(), but I cannot format it correctly. Any advice would be very welcome. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 16:25:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-replace-the-first-character-of-a-string/m-p/731955#M32167</guid>
      <dc:creator>JoeLivoti</dc:creator>
      <dc:date>2020-07-28T16:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I replace the first character of a string using calculate field in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-replace-the-first-character-of-a-string/m-p/731956#M32168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;"1"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; !YourField!&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="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;python parser and YourField is the field that contains the original.&lt;/P&gt;&lt;P&gt;It is best to do calculations in a new field in case things go real bad.&lt;/P&gt;&lt;P&gt;You can copy them back into the original later&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 16:30:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-replace-the-first-character-of-a-string/m-p/731956#M32168</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-07-28T16:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I replace the first character of a string using calculate field in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-replace-the-first-character-of-a-string/m-p/731957#M32169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;Thank you that worked perfect. How would I augment that to change a different value in the string, say the second value to a 5? Again thank you!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 18:00:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-replace-the-first-character-of-a-string/m-p/731957#M32169</guid>
      <dc:creator>JoeLivoti</dc:creator>
      <dc:date>2020-07-28T18:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I replace the first character of a string using calculate field in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-replace-the-first-character-of-a-string/m-p/731958#M32170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although you asked a follow-up question, Dan addressed your first question.&amp;nbsp; Please mark his response as Correct to close out the question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 18:08:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-replace-the-first-character-of-a-string/m-p/731958#M32170</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-07-28T18:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I replace the first character of a string using calculate field in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-replace-the-first-character-of-a-string/m-p/731959#M32171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;"15"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; !YourField!&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="border: 0px; color: #990000; font-weight: inherit; "&gt;2&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;]&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or if you just mean the 2nd value, leaving the first along&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN style="color: #000000;"&gt;!YourField!&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="border: 0px; color: #990000; font-weight: inherit; "&gt;:1&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;] + "5" +&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/CODE&gt;!YourField!&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="border: 0px; color: #990000; font-weight: inherit; "&gt;2&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;]&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 19:36:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-replace-the-first-character-of-a-string/m-p/731959#M32171</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-07-28T19:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I replace the first character of a string using calculate field in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-replace-the-first-character-of-a-string/m-p/731960#M32172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Dan!! The second one was exactly what i needed!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 11:07:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-replace-the-first-character-of-a-string/m-p/731960#M32172</guid>
      <dc:creator>JoeLivoti</dc:creator>
      <dc:date>2020-07-29T11:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I replace the first character of a string using calculate field in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-replace-the-first-character-of-a-string/m-p/731961#M32173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 15:46:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-replace-the-first-character-of-a-string/m-p/731961#M32173</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-07-29T15:46:02Z</dc:date>
    </item>
  </channel>
</rss>

