<?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 Number and Text for Multiple Lines in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Split-Number-and-Text-for-Multiple-Lines/m-p/45628#M1806</link>
    <description>&lt;P&gt;&lt;A class="user-content-mention" data-sign="@" data-contactkey="ab9d80e2-18d6-4c31-b377-018757173109" data-tag-text="@Mia Mikela" href="https://community.blueprism.com/network/profile?UserKey=ab9d80e2-18d6-4c31-b377-018757173109" data-itemmentionkey="96e89cb8-4822-46f4-99c9-90a51b40838f"&gt;@Mia Mikela&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you are just looking to split text by lines into a collection, as &lt;A class="user-content-mention" data-sign="@" data-contactkey="bf6edb31-c42f-4040-9e4b-d47f91046c5a" data-tag-text="@John Carter" href="https://community.blueprism.com/network/profile?UserKey=bf6edb31-c42f-4040-9e4b-d47f91046c5a" data-itemmentionkey="8e38ded6-2610-4bbc-9a95-b725e3f135fc"&gt;@John Carter&lt;/A&gt; pointed out, I would use the "Split Lines" action in Blue Prism's "Utility - Strings". Regex would be overkill in that situation.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Micheal Charron&lt;BR /&gt;Senior Manager&lt;BR /&gt;RBC&lt;BR /&gt;America/Toronto&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 29 Sep 2023 20:15:00 GMT</pubDate>
    <dc:creator>MichealCharron</dc:creator>
    <dc:date>2023-09-29T20:15:00Z</dc:date>
    <item>
      <title>Split Number and Text for Multiple Lines</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Split-Number-and-Text-for-Multiple-Lines/m-p/45623#M1801</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I want to split numbers and text and store them in different columns; reference number and reference text.&lt;/P&gt;
&lt;P&gt;1/ I have a reference text box which 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;My BP code for splitting numbers and text is shown below. &lt;STRONG&gt;However, it only works for [8899] cat - cat food, but not others [the other references are not split - still in original form)&lt;/STRONG&gt; Note: Since the code, Mid([Reference Output],3,6) is for extracting numbers and Replace([Reference Output],Left([Reference Output],9),"") is for extracting text. The result will be [8899] and cat - cat food [which are separate for reference number and reference text columns].&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20026.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20171i88CAF27FE9C59B7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="20026.png" alt="20026.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20027.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20172iA021C1AC221AAD2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="20027.png" alt="20027.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&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 to split text and number; according to their reference text box?&lt;/P&gt;
&lt;P&gt;&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 09:11:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Split-Number-and-Text-for-Multiple-Lines/m-p/45623#M1801</guid>
      <dc:creator>Lily.L</dc:creator>
      <dc:date>2023-09-29T09:11:00Z</dc:date>
    </item>
    <item>
      <title>RE: Split Number and Text for Multiple Lines</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Split-Number-and-Text-for-Multiple-Lines/m-p/45624#M1802</link>
      <description>&lt;P&gt;Maybe the first step is to split the text into a collection of lines (Utility - Strings). Then loop through the collection and split the line into number &amp;amp; text.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Carter&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Sep 2023 10:50:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Split-Number-and-Text-for-Multiple-Lines/m-p/45624#M1802</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2023-09-29T10:50:00Z</dc:date>
    </item>
    <item>
      <title>RE: Split Number and Text for Multiple Lines</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Split-Number-and-Text-for-Multiple-Lines/m-p/45625#M1803</link>
      <description>&lt;P&gt;&lt;A class="user-content-mention" data-sign="@" data-contactkey="ab9d80e2-18d6-4c31-b377-018757173109" data-tag-text="@Mia Mikela" href="https://community.blueprism.com/network/profile?UserKey=ab9d80e2-18d6-4c31-b377-018757173109" data-itemmentionkey="665cdb24-6841-4632-a92a-125751be400f"&gt;@Mia Mikela&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;You can use the action "Extract Regex All Matches" from Blue Prism's Utility - Strings VBO (&lt;A href="https://digitalexchange.blueprism.com/dx/entry/3439/solution/utility---strings" target="_blank" rel="noopener"&gt;Blue Prism Digital Exchange&lt;/A&gt; - Utility Strings) to extract that information into a collection.&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1; padding-left: 40px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19991.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20138i31ABB753E43F89A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="19991.png" alt="19991.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;You can use the Regex pattern:&lt;/DIV&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;
&lt;PRE class="language-vbnet"&gt;&lt;CODE&gt;(?&amp;lt;ReferenceNumber&amp;gt;\[\d{4}\])\s+(?&amp;lt;ReferenceText&amp;gt;[^\r\n]+)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;TABLE style="width: 100%; height: 44.8864px;"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 44.8864px;"&gt;
&lt;TD style="width: 50%; height: 44.8864px;"&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1; padding-left: 80px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19992.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20140i583C2F2AA7DC6783/image-size/large?v=v2&amp;amp;px=999" role="button" title="19992.png" alt="19992.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD style="width: 50%; height: 44.8864px;"&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19993.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20139i3642A4AC40E3D8D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="19993.png" alt="19993.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;What you will end up with is a collection of data that of all matches no matter how many lines your original text has:&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1; padding-left: 40px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19994.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20141iBD6783A844888243/image-size/large?v=v2&amp;amp;px=999" role="button" title="19994.png" alt="19994.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Micheal Charron&lt;BR /&gt;Senior Manager&lt;BR /&gt;RBC&lt;BR /&gt;America/Toronto&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Sep 2023 17:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Split-Number-and-Text-for-Multiple-Lines/m-p/45625#M1803</guid>
      <dc:creator>MichealCharron</dc:creator>
      <dc:date>2023-09-29T17:46:00Z</dc:date>
    </item>
    <item>
      <title>RE: Split Number and Text for Multiple Lines</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Split-Number-and-Text-for-Multiple-Lines/m-p/45626#M1804</link>
      <description>&lt;P&gt;Thanks @Micheal Charron,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;May I ask, instead of splitting numbers and text , how about keeping the reference output in its original form - but in a separate line when added to the collection&lt;/P&gt;
&lt;P&gt;What &lt;SPAN&gt;Regex pattern: I should use?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Note: Given the reference output looks like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[8899] cat - cat food&lt;BR /&gt;[9988] dog - dog food&lt;BR /&gt;[7788] pet - pet food &lt;BR /&gt;[9977] cow - cow milk&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;However, when I add them to the collection, they are looked like this: "[8899] cat - cat food [9988] dog - dog food [7788] pet - pet food [9977] cow - cow milk". So I want to split the line and keep its original form.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;M&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mia Mikela&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 20:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Split-Number-and-Text-for-Multiple-Lines/m-p/45626#M1804</guid>
      <dc:creator>Lily.L</dc:creator>
      <dc:date>2023-09-29T20:03:00Z</dc:date>
    </item>
    <item>
      <title>RE: Split Number and Text for Multiple Lines</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Split-Number-and-Text-for-Multiple-Lines/m-p/45627#M1805</link>
      <description>&lt;P&gt;Thanks @Micheal Charron,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;May I ask, instead of splitting numbers and text , how about keeping the reference output in its original form - but in a separate line when added to the collection&lt;/P&gt;
&lt;P&gt;What&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Regex pattern: I should use?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Note: Given the reference output looks like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[8899] cat - cat food&lt;BR /&gt;[9988] dog - dog food&lt;BR /&gt;[7788] pet - pet food&lt;BR /&gt;[9977] cow - cow milk&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;However, when I add them to the collection, they are looked like this: "[8899] cat - cat food [9988] dog - dog food [7788] pet - pet food [9977] cow - cow milk". So I want to split the line and keep its original form.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;M&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 20:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Split-Number-and-Text-for-Multiple-Lines/m-p/45627#M1805</guid>
      <dc:creator>Lily.L</dc:creator>
      <dc:date>2023-09-29T20:03:00Z</dc:date>
    </item>
    <item>
      <title>RE: Split Number and Text for Multiple Lines</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Split-Number-and-Text-for-Multiple-Lines/m-p/45628#M1806</link>
      <description>&lt;P&gt;&lt;A class="user-content-mention" data-sign="@" data-contactkey="ab9d80e2-18d6-4c31-b377-018757173109" data-tag-text="@Mia Mikela" href="https://community.blueprism.com/network/profile?UserKey=ab9d80e2-18d6-4c31-b377-018757173109" data-itemmentionkey="96e89cb8-4822-46f4-99c9-90a51b40838f"&gt;@Mia Mikela&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you are just looking to split text by lines into a collection, as &lt;A class="user-content-mention" data-sign="@" data-contactkey="bf6edb31-c42f-4040-9e4b-d47f91046c5a" data-tag-text="@John Carter" href="https://community.blueprism.com/network/profile?UserKey=bf6edb31-c42f-4040-9e4b-d47f91046c5a" data-itemmentionkey="8e38ded6-2610-4bbc-9a95-b725e3f135fc"&gt;@John Carter&lt;/A&gt; pointed out, I would use the "Split Lines" action in Blue Prism's "Utility - Strings". Regex would be overkill in that situation.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Micheal Charron&lt;BR /&gt;Senior Manager&lt;BR /&gt;RBC&lt;BR /&gt;America/Toronto&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Sep 2023 20:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Split-Number-and-Text-for-Multiple-Lines/m-p/45628#M1806</guid>
      <dc:creator>MichealCharron</dc:creator>
      <dc:date>2023-09-29T20:15:00Z</dc:date>
    </item>
    <item>
      <title>RE: Split Number and Text for Multiple Lines</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Split-Number-and-Text-for-Multiple-Lines/m-p/45629#M1807</link>
      <description>&lt;P&gt;Hi can you please have a look at my steps, I follow the steps, add loop, add split text. but it still doesn't work correctly&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20012.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20157i0C8FBDBFC02DAD33/image-size/large?v=v2&amp;amp;px=999" role="button" title="20012.png" alt="20012.png" /&gt;&lt;/span&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="20013.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20156iE97913523CCF1AFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="20013.png" alt="20013.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20014.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20160iED23333CBD8BD5B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="20014.png" alt="20014.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20015.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20162i6F2805A3653F6C1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="20015.png" alt="20015.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20016.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20164iD81F1EA1488CDB88/image-size/large?v=v2&amp;amp;px=999" role="button" title="20016.png" alt="20016.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20017.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20163i4909A559AA9A2FBC/image-size/large?v=v2&amp;amp;px=999" role="button" title="20017.png" alt="20017.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;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mia Mikela&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 21:26:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Split-Number-and-Text-for-Multiple-Lines/m-p/45629#M1807</guid>
      <dc:creator>Lily.L</dc:creator>
      <dc:date>2023-09-29T21:26:00Z</dc:date>
    </item>
  </channel>
</rss>

