<?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: Substituting a space for underscore in a character string in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Substituting-a-space-for-underscore-in-a-character-string/m-p/597737#M80123</link>
    <description>&lt;P&gt;Hi, notice that Jarmo's code replaces the underscores with a space character, " ", while your code replaced the underscores with the empty string, "", which was at least part of the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2023 19:43:59 GMT</pubDate>
    <dc:creator>brady_brady</dc:creator>
    <dc:date>2023-02-06T19:43:59Z</dc:date>
    <item>
      <title>Substituting a space for underscore in a character string</title>
      <link>https://community.jmp.com/t5/Discussions/Substituting-a-space-for-underscore-in-a-character-string/m-p/597222#M80086</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;I have a long description of a product that includes a bunch of underscores __ which I don't want. I'd like to replace them with spaces instead.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've tried using substr(substitute(columnname, "_",""),1, 999) but that just makes the entire field blank.&amp;nbsp;&lt;BR /&gt;I've also tried the reverse (substitute(substr....) same problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help!&lt;BR /&gt;&lt;BR /&gt;JMP 17 FWIW.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:38:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Substituting-a-space-for-underscore-in-a-character-string/m-p/597222#M80086</guid>
      <dc:creator>RandomMapsFox62</dc:creator>
      <dc:date>2023-06-08T16:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Substituting a space for underscore in a character string</title>
      <link>https://community.jmp.com/t5/Discussions/Substituting-a-space-for-underscore-in-a-character-string/m-p/597235#M80087</link>
      <description>&lt;P&gt;Just using Substitute should be enough (or Substitute Into() depending on what you are doing)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

str = "aaa________b_c_________________d";
new_str = Substitute(str, "_", " "); // "aaa        b c                 d"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2023 19:02:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Substituting-a-space-for-underscore-in-a-character-string/m-p/597235#M80087</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-02-04T19:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Substituting a space for underscore in a character string</title>
      <link>https://community.jmp.com/t5/Discussions/Substituting-a-space-for-underscore-in-a-character-string/m-p/597737#M80123</link>
      <description>&lt;P&gt;Hi, notice that Jarmo's code replaces the underscores with a space character, " ", while your code replaced the underscores with the empty string, "", which was at least part of the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 19:43:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Substituting-a-space-for-underscore-in-a-character-string/m-p/597737#M80123</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2023-02-06T19:43:59Z</dc:date>
    </item>
  </channel>
</rss>

