<?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: removing empty rows from a string in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/removing-empty-rows-from-a-string/m-p/98588#M46311</link>
    <description>&lt;P&gt;I found a solution now:&lt;BR /&gt;&lt;BR /&gt;I make a regex serach for all lines that have content and put them in a collection. Then I juse join lines with that collection and get a string without empty lines. After that I have to rename the collection field because the&amp;nbsp; join lines action expects a collection with that field name.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35898.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35914iAAA1BFF1A4171411/image-size/large?v=v2&amp;amp;px=999" role="button" title="35898.png" alt="35898.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 01 Oct 2023 10:00:14 GMT</pubDate>
    <dc:creator>MarcoMatuttis</dc:creator>
    <dc:date>2023-10-01T10:00:14Z</dc:date>
    <item>
      <title>removing empty rows from a string</title>
      <link>https://community.blueprism.com/t5/Product-Forum/removing-empty-rows-from-a-string/m-p/98585#M46308</link>
      <description>&lt;P&gt;I used blueprism to get html code of a website. I used standard string operations like replace and regex etc. to modify the html to get a result like this:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35899.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35912i70D08C1E8A9A87E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="35899.png" alt="35899.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I would like to "trim" every single line of the string and remove the lines that have no characters but I'm not able to do it.&lt;BR /&gt;&lt;BR /&gt;I thought about a regex replace but somehow I can not get the regular expression right. I use the AVO.regex and tried to use some stuff i found on google which seems to work on regex101:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35900.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35913iE207457ABDBB388C/image-size/large?v=v2&amp;amp;px=999" role="button" title="35900.png" alt="35900.png" /&gt;&lt;/span&gt;heres the way i built it:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35901.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35915iD9D48F8C50C64858/image-size/large?v=v2&amp;amp;px=999" role="button" title="35901.png" alt="35901.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35902.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35916iA5D7F5B1931913E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="35902.png" alt="35902.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Anyone got an idea how I could manipulate the string?&lt;/P&gt;</description>
      <pubDate>Sat, 30 Sep 2023 08:14:04 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/removing-empty-rows-from-a-string/m-p/98585#M46308</guid>
      <dc:creator>MarcoMatuttis</dc:creator>
      <dc:date>2023-09-30T08:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: removing empty rows from a string</title>
      <link>https://community.blueprism.com/t5/Product-Forum/removing-empty-rows-from-a-string/m-p/98586#M46309</link>
      <description>&lt;P&gt;I managed to trim every line with&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;[ ]{2,}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;as input for the regex pattern but still can't get rid of the empty lines.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Sep 2023 08:32:26 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/removing-empty-rows-from-a-string/m-p/98586#M46309</guid>
      <dc:creator>MarcoMatuttis</dc:creator>
      <dc:date>2023-09-30T08:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: removing empty rows from a string</title>
      <link>https://community.blueprism.com/t5/Product-Forum/removing-empty-rows-from-a-string/m-p/98587#M46310</link>
      <description>&lt;P&gt;Hi Marco Matuttis,&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;1) If you want to just replace new line and append all text&amp;nbsp; you can use Replace([Data1], NewlIne(),"")&lt;BR /&gt;&lt;BR /&gt;Data1=&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;First Line 09/30/2023&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Name:&amp;nbsp; &amp;lt;Name&amp;gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Adress: &amp;lt;Address&amp;gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Telephone: 000378932&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Terlrphone" 238930303&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ServiceNumber: q23425093509285095&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;2) If you want to just remove the empty lines and keep the text as is. you can try&amp;nbsp; Below steps:&lt;/DIV&gt;
&lt;DIV&gt;Step1: Replace([Data1], " ", "")&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35893.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35905i8E72B3490D320F29/image-size/large?v=v2&amp;amp;px=999" role="button" title="35893.png" alt="35893.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV&gt;Step2: Split Lines&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35894.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35911i1F8A14290FC7D2E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="35894.png" alt="35894.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV&gt;Step3: Remove empty rows&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35895.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35910i72908D7E79E99946/image-size/large?v=v2&amp;amp;px=999" role="button" title="35895.png" alt="35895.png" /&gt;&lt;/span&gt;Step4: check it is first row/Line &amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;if it is first row just add the split value text to final text&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35896.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35908i35EE749B5A5ECD58/image-size/large?v=v2&amp;amp;px=999" role="button" title="35896.png" alt="35896.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Step5:&amp;nbsp; your calculation stage looks like this if it is other than 2nd row&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;[FinalText]&amp;amp;NewLine()&amp;amp;[Split Values.Value]&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35897.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35909i4867BA7F2AD3E0B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="35897.png" alt="35897.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2023 01:32:55 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/removing-empty-rows-from-a-string/m-p/98587#M46310</guid>
      <dc:creator>harish.mogulluri</dc:creator>
      <dc:date>2023-10-01T01:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: removing empty rows from a string</title>
      <link>https://community.blueprism.com/t5/Product-Forum/removing-empty-rows-from-a-string/m-p/98588#M46311</link>
      <description>&lt;P&gt;I found a solution now:&lt;BR /&gt;&lt;BR /&gt;I make a regex serach for all lines that have content and put them in a collection. Then I juse join lines with that collection and get a string without empty lines. After that I have to rename the collection field because the&amp;nbsp; join lines action expects a collection with that field name.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35898.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35914iAAA1BFF1A4171411/image-size/large?v=v2&amp;amp;px=999" role="button" title="35898.png" alt="35898.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2023 10:00:14 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/removing-empty-rows-from-a-string/m-p/98588#M46311</guid>
      <dc:creator>MarcoMatuttis</dc:creator>
      <dc:date>2023-10-01T10:00:14Z</dc:date>
    </item>
  </channel>
</rss>

