<?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 Replace text between two delimiters in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Replace-text-between-two-delimiters/m-p/811802#M33979</link>
    <description>&lt;P&gt;Hi, I have a column in a table having string values like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;have: "amazing,123 cruise|amazing2,123 cruise2|"&lt;/P&gt;&lt;P&gt;want: "amazing | amazing2"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;summary: need to delete substrings occurring between "," and "|" and then delete ","&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The column has lots of such values and I want to replace wherever such instance occurs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Urgent help required, thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2022 07:17:52 GMT</pubDate>
    <dc:creator>mu6110283</dc:creator>
    <dc:date>2022-05-06T07:17:52Z</dc:date>
    <item>
      <title>Replace text between two delimiters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Replace-text-between-two-delimiters/m-p/811802#M33979</link>
      <description>&lt;P&gt;Hi, I have a column in a table having string values like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;have: "amazing,123 cruise|amazing2,123 cruise2|"&lt;/P&gt;&lt;P&gt;want: "amazing | amazing2"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;summary: need to delete substrings occurring between "," and "|" and then delete ","&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The column has lots of such values and I want to replace wherever such instance occurs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Urgent help required, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 07:17:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Replace-text-between-two-delimiters/m-p/811802#M33979</guid>
      <dc:creator>mu6110283</dc:creator>
      <dc:date>2022-05-06T07:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Replace text between two delimiters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Replace-text-between-two-delimiters/m-p/811817#M33982</link>
      <description>&lt;P&gt;Wouldn't you want string be&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;want: "amazing | amazing2|"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;then?&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 08:53:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Replace-text-between-two-delimiters/m-p/811817#M33982</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-05-06T08:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Replace text between two delimiters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Replace-text-between-two-delimiters/m-p/811841#M33984</link>
      <description>&lt;PRE&gt;data have;
have="amazing,123 cruise|amazing2,123 cruise2|";
want=prxchange('s/\,[^\,\|]+\|/|/',-1,have);
run;
proc print;run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 May 2022 11:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Replace-text-between-two-delimiters/m-p/811841#M33984</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-05-06T11:54:39Z</dc:date>
    </item>
  </channel>
</rss>

