<?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: Field calculations for adding spaces between values in Business Questions</title>
    <link>https://community.esri.com/t5/business-questions/field-calculations-for-adding-spaces-between/m-p/588583#M90</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can replace text in tables. I'd start by replacing "ftx" with " ft x ", and then tackle the other edge cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000012044" title="https://support.esri.com/en/technical-article/000012044"&gt;How To: Replace the text in multiple fields within an attribute table using the Find and Replace tool&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 May 2018 22:21:26 GMT</pubDate>
    <dc:creator>DarrenWiens2</dc:creator>
    <dc:date>2018-05-04T22:21:26Z</dc:date>
    <item>
      <title>Field calculations for adding spaces between values</title>
      <link>https://community.esri.com/t5/business-questions/field-calculations-for-adding-spaces-between/m-p/588582#M89</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to clean up some attribute tables and I'm having some difficulty finding a way to fix a certain issue. I have columns that have strings such as "Curb spalling, 3ftx4ftx6ft," and want to add spaces. I want it to look like this; "Curb spalling, 3 ft x 4 ft x 6 ft." I'm not very good with editing attributes in this manner so I was wondering what I could do, rather than having to do every single row of the column manually..Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 19:47:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/business-questions/field-calculations-for-adding-spaces-between/m-p/588582#M89</guid>
      <dc:creator>MatthewForsberg</dc:creator>
      <dc:date>2018-05-04T19:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Field calculations for adding spaces between values</title>
      <link>https://community.esri.com/t5/business-questions/field-calculations-for-adding-spaces-between/m-p/588583#M90</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can replace text in tables. I'd start by replacing "ftx" with " ft x ", and then tackle the other edge cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000012044" title="https://support.esri.com/en/technical-article/000012044"&gt;How To: Replace the text in multiple fields within an attribute table using the Find and Replace tool&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 22:21:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/business-questions/field-calculations-for-adding-spaces-between/m-p/588583#M90</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2018-05-04T22:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Field calculations for adding spaces between values</title>
      <link>https://community.esri.com/t5/business-questions/field-calculations-for-adding-spaces-between/m-p/588584#M91</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's about the only thing I could figure out, haha. The other part of my question is actually the issue! &lt;/P&gt;&lt;P&gt;Thank you though!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 11:56:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/business-questions/field-calculations-for-adding-spaces-between/m-p/588584#M91</guid>
      <dc:creator>MatthewForsberg</dc:creator>
      <dc:date>2018-05-09T11:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Field calculations for adding spaces between values</title>
      <link>https://community.esri.com/t5/business-questions/field-calculations-for-adding-spaces-between/m-p/588585#M92</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I use something like this (Python parser):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;txt_in &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Curb spalling, 3ftx4ftx6ft'&lt;/SPAN&gt;
txt_out &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; txt_in&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;replace&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'ft'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;' ft'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;replace&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'x'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;' x '&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; txt_in
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; txt_out&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will yield:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Curb spalling, 3ftx4ftx6ft
Curb spalling, 3 ft x 4 ft x 6 ft&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So probably try and use:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;!YourFieldName!.replace('ft', ' ft').replace('x', ' x ')&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;&lt;/P&gt;&lt;P&gt;Test this, writing to a new&amp;nbsp;field, rather than replacing the existing values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:17:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/business-questions/field-calculations-for-adding-spaces-between/m-p/588585#M92</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T01:17:11Z</dc:date>
    </item>
  </channel>
</rss>

