<?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: Calculate Toolbox Tool: replace specific text in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/calculate-toolbox-tool-replace-specific-text/m-p/780430#M1010</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was the casecracker!&amp;nbsp; I was trying to gather the group of values I wanted to change instead of using a conditional for a specific value.&amp;nbsp; Thanks Joe!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Nov 2019 00:00:01 GMT</pubDate>
    <dc:creator>KariBuckvold</dc:creator>
    <dc:date>2019-11-28T00:00:01Z</dc:date>
    <item>
      <title>Calculate Toolbox Tool: replace specific text</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/calculate-toolbox-tool-replace-specific-text/m-p/780428#M1008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all, I'm building a data cleanup tool in model-builder using the 'Calculate' field and the the .replace() function.&amp;nbsp; It's working well except for one problem, the values that I am updating are to include text string parts valuesin the original attributes.&amp;nbsp; So the replace function behaves as though there are endless wildcards in the field.&amp;nbsp; Is there a way to limit the replace function to change those field values where the first variable is as exactly as it is in the function 'Demo' vs '%Demo%'?&amp;nbsp; I figure it's got to be something easy I'm overlooking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function:&amp;nbsp; !Project_Type!.replace('Demo','Demolition')&lt;/P&gt;&lt;P&gt;original value: Demo&lt;/P&gt;&lt;P&gt;intended value: Demolition&lt;/P&gt;&lt;P&gt;returned value:&amp;nbsp;Demolitionlition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2019 21:04:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/calculate-toolbox-tool-replace-specific-text/m-p/780428#M1008</guid>
      <dc:creator>KariBuckvold</dc:creator>
      <dc:date>2019-11-27T21:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Toolbox Tool: replace specific text</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/calculate-toolbox-tool-replace-specific-text/m-p/780429#M1009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems like a band-aid, but you could add a conditional (if x like %demolition%) to not replace the same string more than once. Or, better yet, use conditionals to test if the replace function should run on a given value (if x == 'demo').&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2019 21:20:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/calculate-toolbox-tool-replace-specific-text/m-p/780429#M1009</guid>
      <dc:creator>JoeMagnotta</dc:creator>
      <dc:date>2019-11-27T21:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Toolbox Tool: replace specific text</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/calculate-toolbox-tool-replace-specific-text/m-p/780430#M1010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was the casecracker!&amp;nbsp; I was trying to gather the group of values I wanted to change instead of using a conditional for a specific value.&amp;nbsp; Thanks Joe!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2019 00:00:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/calculate-toolbox-tool-replace-specific-text/m-p/780430#M1010</guid>
      <dc:creator>KariBuckvold</dc:creator>
      <dc:date>2019-11-28T00:00:01Z</dc:date>
    </item>
  </channel>
</rss>

