<?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: Split Text into multiple lines in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Split-Text-into-multiple-lines/m-p/84727#M35830</link>
    <description>&lt;P&gt;Hi Mia Mikela,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;if I understand your questions.&lt;/P&gt;
&lt;P&gt;you need to split this text"[8899] cat - cat food[9988] dog - dog food[7788] pet - pet food[9977] cow - cow milk" as diff rows?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If that is the case, you can split based on "[" and readd the brackets once split is completed. I wont relay on space since it might end up with more rows and make confuse it.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Also I noticed your split action doesnot have collection field value.&amp;nbsp; Assuming your collection has&amp;nbsp; field called "Column1"?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11695.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11871i7237928AA674A779/image-size/large?v=v2&amp;amp;px=999" role="button" title="11695.png" alt="11695.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11696.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11872iB76EA504E0159B48/image-size/large?v=v2&amp;amp;px=999" role="button" title="11696.png" alt="11696.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;You need to remove emoty cells using utility collection action empty rows and to append the brackets at the beginning you can loop the collection and add brackets one at a time. There might be other ways to do it as well&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11697.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11867iA40EC620D21A49FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="11697.png" alt="11697.png" /&gt;&lt;/span&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;-----------------------&lt;BR /&gt;If I answered your query. Please mark it as the "Best Answer"&lt;BR /&gt;&lt;BR /&gt;Harish Mogulluri&lt;BR /&gt;Lead developer&lt;BR /&gt;America/New_York TX&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 01 Oct 2023 03:48:00 GMT</pubDate>
    <dc:creator>harish.mogulluri</dc:creator>
    <dc:date>2023-10-01T03:48:00Z</dc:date>
    <item>
      <title>Split Text into multiple lines</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Split-Text-into-multiple-lines/m-p/84724#M35827</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I want to split text and store it in multiple lines&lt;/P&gt;
&lt;P&gt;1/ I have a reference text box&amp;nbsp; - reference output has multiple lines; for example&lt;/P&gt;
&lt;P&gt;In "Pet Category" Reference, we have:&lt;/P&gt;
&lt;P&gt;[8899] cat - cat food&lt;/P&gt;
&lt;P&gt;[9988] dog - dog food&lt;/P&gt;
&lt;P&gt;[7788] pet - pet food&lt;/P&gt;
&lt;P&gt;[9977] cow - cow milk&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;However, when I store them in a collection, then the text looks like this [8899] cat - cat food[9988] dog - dog food[7788] pet - pet food[9977] cow - cow milk&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;How can I make them look like the original output:&lt;/P&gt;
&lt;P&gt;[xxxx] ABC - def&lt;/P&gt;
&lt;P&gt;[yyyy] ghj - klm, and so on&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;2/ My reference text box outcome will come in different ways; some of them will have 1 line, some of them will have 2 lines some of them will have 3 lines, and so on.&lt;/P&gt;
&lt;P&gt;In this case, what's the best way I should do?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I have tried split text but it doesn't look correctly&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11759.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11929i64CD5597039B917F/image-size/large?v=v2&amp;amp;px=999" role="button" title="11759.png" alt="11759.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11760.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11928iC9E974E4802BDDC0/image-size/large?v=v2&amp;amp;px=999" role="button" title="11760.png" alt="11760.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11761.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11931i56FD00AAD23A2A7D/image-size/large?v=v2&amp;amp;px=999" role="button" title="11761.png" alt="11761.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11762.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11934i259EF9E00AC991D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="11762.png" alt="11762.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11763.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11932i1EB148278098786B/image-size/large?v=v2&amp;amp;px=999" role="button" title="11763.png" alt="11763.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11764.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11933i8CEC7F7BCF794472/image-size/large?v=v2&amp;amp;px=999" role="button" title="11764.png" alt="11764.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and result look like this:&amp;nbsp; [8899] cat - cat food[9988] dog - dog food&lt;/P&gt;
&lt;P&gt;Thank you so much!&lt;/P&gt;
&lt;P&gt;M&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mia Mikela&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Sep 2023 23:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Split-Text-into-multiple-lines/m-p/84724#M35827</guid>
      <dc:creator>Lily.L</dc:creator>
      <dc:date>2023-09-29T23:23:00Z</dc:date>
    </item>
    <item>
      <title>RE: Split Text into multiple lines</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Split-Text-into-multiple-lines/m-p/84725#M35828</link>
      <description>&lt;P&gt;Hi Mia Mikela,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If&amp;nbsp; the text you are referencing has new line for each&amp;nbsp; value"&lt;SPAN&gt;[8899] cat - cat food&lt;/SPAN&gt;" then&amp;nbsp; first&amp;nbsp; you need to use "Utility - Strings"&amp;nbsp; VBO Action: Split Lines&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;then&amp;nbsp; it will give&amp;nbsp; each value as new row in the collection&lt;/P&gt;
&lt;P&gt;I put together screenshot for similar question. you can refer below thread.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;A href="https://community.blueprism.com/question/removing-empty-rows-from-a-string#5e612126-25f0-4563-b1da-018ae537b04c" target="test_blank"&gt;https://community.blueprism.com/question/removing-empty-rows-from-a-string#5e612126-25f0-4563-b1da-018ae537b04c&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;-----------------------&lt;BR /&gt;If I answered your query. Please  mark it as the "Best Answer"&lt;BR /&gt;&lt;BR /&gt;Harish Mogulluri&lt;BR /&gt;Lead developer&lt;BR /&gt;America/New_York TX&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 01 Oct 2023 01:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Split-Text-into-multiple-lines/m-p/84725#M35828</guid>
      <dc:creator>harish.mogulluri</dc:creator>
      <dc:date>2023-10-01T01:57:00Z</dc:date>
    </item>
    <item>
      <title>RE: Split Text into multiple lines</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Split-Text-into-multiple-lines/m-p/84726#M35829</link>
      <description>&lt;P&gt;Hi Harish,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks for replying , I have tried but it doesn't work.&lt;/P&gt;
&lt;P&gt;My steps: because the initial value looks like this: &lt;SPAN&gt;[8899] cat - cat food[9988] dog - dog food, so I have to make a space between food [9988], then I do split text, append to the collection, split line and append to collection. Can you please have a look at my steps?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11680.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11854iAA3EC3B84366050D/image-size/large?v=v2&amp;amp;px=999" role="button" title="11680.png" alt="11680.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;split text:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11681.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11851iAAA7E6B02727E178/image-size/large?v=v2&amp;amp;px=999" role="button" title="11681.png" alt="11681.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11682.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11852iD7B5854BE6888196/image-size/large?v=v2&amp;amp;px=999" role="button" title="11682.png" alt="11682.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;write to collection:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11683.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11853iA1C708F584432D16/image-size/large?v=v2&amp;amp;px=999" role="button" title="11683.png" alt="11683.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11684.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11855iC003DE1CED2EF1C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="11684.png" alt="11684.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;split line&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11685.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11856i19E466638492DC18/image-size/large?v=v2&amp;amp;px=999" role="button" title="11685.png" alt="11685.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11686.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11857i4E1EA02B90E95420/image-size/large?v=v2&amp;amp;px=999" role="button" title="11686.png" alt="11686.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Write to colelction&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11687.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11858iA1CD5AA4026D3D38/image-size/large?v=v2&amp;amp;px=999" role="button" title="11687.png" alt="11687.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11688.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11859i7EF36B33490AA84C/image-size/large?v=v2&amp;amp;px=999" role="button" title="11688.png" alt="11688.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mia Mikela&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 01 Oct 2023 03:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Split-Text-into-multiple-lines/m-p/84726#M35829</guid>
      <dc:creator>Lily.L</dc:creator>
      <dc:date>2023-10-01T03:06:00Z</dc:date>
    </item>
    <item>
      <title>RE: Split Text into multiple lines</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Split-Text-into-multiple-lines/m-p/84727#M35830</link>
      <description>&lt;P&gt;Hi Mia Mikela,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;if I understand your questions.&lt;/P&gt;
&lt;P&gt;you need to split this text"[8899] cat - cat food[9988] dog - dog food[7788] pet - pet food[9977] cow - cow milk" as diff rows?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If that is the case, you can split based on "[" and readd the brackets once split is completed. I wont relay on space since it might end up with more rows and make confuse it.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Also I noticed your split action doesnot have collection field value.&amp;nbsp; Assuming your collection has&amp;nbsp; field called "Column1"?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11695.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11871i7237928AA674A779/image-size/large?v=v2&amp;amp;px=999" role="button" title="11695.png" alt="11695.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11696.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11872iB76EA504E0159B48/image-size/large?v=v2&amp;amp;px=999" role="button" title="11696.png" alt="11696.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;You need to remove emoty cells using utility collection action empty rows and to append the brackets at the beginning you can loop the collection and add brackets one at a time. There might be other ways to do it as well&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11697.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11867iA40EC620D21A49FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="11697.png" alt="11697.png" /&gt;&lt;/span&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;-----------------------&lt;BR /&gt;If I answered your query. Please mark it as the "Best Answer"&lt;BR /&gt;&lt;BR /&gt;Harish Mogulluri&lt;BR /&gt;Lead developer&lt;BR /&gt;America/New_York TX&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2023 03:48:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Split-Text-into-multiple-lines/m-p/84727#M35830</guid>
      <dc:creator>harish.mogulluri</dc:creator>
      <dc:date>2023-10-01T03:48:00Z</dc:date>
    </item>
    <item>
      <title>RE: Split Text into multiple lines</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Split-Text-into-multiple-lines/m-p/84728#M35831</link>
      <description>&lt;P&gt;Hi Harish,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your time. I want to ask:&amp;nbsp; in my case, the reference text box outcome will come in different ways; some of them will have 1 reference line, some of them will have 2 reference lines some of them will have 3 reference lines, and so on.&lt;/P&gt;
&lt;P&gt;In this case, what's the best way I should do? I should add a Loop, but where should I put the loop?&lt;/P&gt;
&lt;P&gt;And, in the 2nd image,&amp;nbsp; I see the collection field text is "Value". -&amp;gt; How do you do that?&lt;/P&gt;
&lt;P&gt;In my case, in the collection, I have 1 column for reference text. After I get the out reference lines, I will add them to the collection, in the reference text column. Therefore, in the Collection field name in your 2nd image, should I put. Queue Data. Reference Text? [As Queue Data is Collection and Reference Text is the column for the reference output]&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;
&lt;P&gt;M&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mia Mikela&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 01 Oct 2023 07:53:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Split-Text-into-multiple-lines/m-p/84728#M35831</guid>
      <dc:creator>Lily.L</dc:creator>
      <dc:date>2023-10-01T07:53:00Z</dc:date>
    </item>
    <item>
      <title>RE: Split Text into multiple lines</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Split-Text-into-multiple-lines/m-p/84729#M35832</link>
      <description>&lt;P&gt;Hi Mia Mikaela&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I think regardless of the no of reference lines it will work, but test ones 2ith different data and see whether it is working&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;In the 2nd image collection field has " value" because i have created collection with column name value.you can use the collection field name .&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;-----------------------&lt;BR /&gt;If I answered your query. Please  mark it as the "Best Answer"&lt;BR /&gt;&lt;BR /&gt;Harish Mogulluri&lt;BR /&gt;Lead developer&lt;BR /&gt;America/New_York TX&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 01 Oct 2023 12:36:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Split-Text-into-multiple-lines/m-p/84729#M35832</guid>
      <dc:creator>harish.mogulluri</dc:creator>
      <dc:date>2023-10-01T12:36:00Z</dc:date>
    </item>
  </channel>
</rss>

