<?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: Replace the line breaks from Excel file with prxchange in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Replace-the-line-breaks-from-Excel-file-with-prxchange/m-p/653452#M196291</link>
    <description>&lt;P&gt;A space means \b is matched, so I am unsure what the intent of your expression is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt; I want to replace this spaces by&amp;nbsp; ^n&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Like this? It's the same as your expression.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;OBJECTIVES2=prxchange('s/\s{2,}/^n/',-1,OBJECTIVES);&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jun 2020 22:49:18 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2020-06-04T22:49:18Z</dc:date>
    <item>
      <title>Replace the line breaks from Excel file with prxchange</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-the-line-breaks-from-Excel-file-with-prxchange/m-p/653277#M196231</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I import an excel file, the data has the&lt;STRONG&gt; line breaks&lt;/STRONG&gt;, so,&amp;nbsp;sometimes ,in my sas data I have the multiple spaces.&lt;/P&gt;
&lt;P&gt;I want to replace this spaces by&amp;nbsp; ^n but my code doesn't work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OBJECTIVES2=prxchange('s/(^|\b)\s{2,}(\b|$)/^n/oi',-1,OBJECTIVES);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you know some other options to do that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help!&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Marie&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 15:53:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-the-line-breaks-from-Excel-file-with-prxchange/m-p/653277#M196231</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-06-04T15:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Replace the line breaks from Excel file with prxchange</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-the-line-breaks-from-Excel-file-with-prxchange/m-p/653452#M196291</link>
      <description>&lt;P&gt;A space means \b is matched, so I am unsure what the intent of your expression is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt; I want to replace this spaces by&amp;nbsp; ^n&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Like this? It's the same as your expression.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;OBJECTIVES2=prxchange('s/\s{2,}/^n/',-1,OBJECTIVES);&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 22:49:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-the-line-breaks-from-Excel-file-with-prxchange/m-p/653452#M196291</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-06-04T22:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Replace the line breaks from Excel file with prxchange</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-the-line-breaks-from-Excel-file-with-prxchange/m-p/653504#M196304</link>
      <description>&lt;P&gt;I would remove the line breaks from your data. That's only going to create problems "somewhere".&lt;/P&gt;
&lt;P&gt;Below RegEx replaces one or multiple consecutive&lt;A href="https://go.documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p0s9ilagexmjl8n1u7e1t1jfnzlk.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt; whitespace characters&lt;/A&gt; with a single blank.&lt;/P&gt;
&lt;PRE&gt;OBJECTIVES2=OBJECTIVES;
OBJECTIVES2=prxchange('s/\s+/ /oi',-1,OBJECTIVES2);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 04:38:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-the-line-breaks-from-Excel-file-with-prxchange/m-p/653504#M196304</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-06-05T04:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Replace the line breaks from Excel file with prxchange</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-the-line-breaks-from-Excel-file-with-prxchange/m-p/653525#M196309</link>
      <description>Great! It works! Thank you!</description>
      <pubDate>Fri, 05 Jun 2020 07:34:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-the-line-breaks-from-Excel-file-with-prxchange/m-p/653525#M196309</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-06-05T07:34:38Z</dc:date>
    </item>
  </channel>
</rss>

