<?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: Convert Text to collection in University Forum</title>
    <link>https://community.blueprism.com/t5/University-Forum/Convert-Text-to-collection/m-p/85741#M1604</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;it is not code stage but another simple way&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="32809.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/32910iEFD7B568A9510D72/image-size/large?v=v2&amp;amp;px=999" role="button" title="32809.png" alt="32809.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here "Pattern" is regex pattern&lt;/P&gt;
&lt;PRE class="language-vbnet"&gt;&lt;CODE&gt;(?&amp;lt;Question&amp;gt;\d+.*)[\r?\n]*(?&amp;lt;option1&amp;gt;.*)[\r?\n]*(?&amp;lt;option2&amp;gt;.*)[\r?\n]*(?&amp;lt;option3&amp;gt;.*)[\r?\n]*(?&amp;lt;option4&amp;gt;.*)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Initial string&amp;nbsp; is your string&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="32810.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/32912iA5F77FBB91B49FD7/image-size/large?v=v2&amp;amp;px=999" role="button" title="32810.png" alt="32810.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Output is just undefined collection&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="32811.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/32916iB944F82C2505A8A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="32811.png" alt="32811.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;will get output collection&lt;/P&gt;
&lt;P&gt;you can remove first column as below&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="32812.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/32915iCE1AADEB11C92612/image-size/large?v=v2&amp;amp;px=999" role="button" title="32812.png" alt="32812.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Provide collection name and column name you want to delete&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Lakshmi Narayana&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Sat, 17 Jun 2023 05:27:00 GMT</pubDate>
    <dc:creator>plnarayana777</dc:creator>
    <dc:date>2023-06-17T05:27:00Z</dc:date>
    <item>
      <title>Convert Text to collection</title>
      <link>https://community.blueprism.com/t5/University-Forum/Convert-Text-to-collection/m-p/85739#M1602</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Can anyone help me with developing a code stage with C# or VB to convert text to collection&lt;/P&gt;
&lt;P&gt;sample&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Input&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;1.The capital of India.&lt;/P&gt;
&lt;P&gt;Moscow&lt;/P&gt;
&lt;P&gt;#Delhi&lt;/P&gt;
&lt;P&gt;Kabul&lt;/P&gt;
&lt;P&gt;Tokiyo&lt;/P&gt;
&lt;P&gt;2.The capital of Japan.&lt;/P&gt;
&lt;P&gt;Moscow&lt;/P&gt;
&lt;P&gt;Delhi&lt;/P&gt;
&lt;P&gt;Kabul&lt;/P&gt;
&lt;P&gt;#Tokiyo&lt;/P&gt;
&lt;P&gt;3.The capital of Afganistan.&lt;/P&gt;
&lt;P&gt;Moscow&lt;/P&gt;
&lt;P&gt;Delhi&lt;/P&gt;
&lt;P&gt;#Kabul&lt;/P&gt;
&lt;P&gt;Tokiyo&lt;/P&gt;
&lt;P&gt;4.The capital of Russia.&lt;/P&gt;
&lt;P&gt;#Moscow&lt;/P&gt;
&lt;P&gt;Delhi&lt;/P&gt;
&lt;P&gt;Kabul&lt;/P&gt;
&lt;P&gt;Tokiyo&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Output&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="32814.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/32911i81C7BCDECD280F4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="32814.png" alt="32814.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Rajsudhapriya CN&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Jun 2023 06:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Convert-Text-to-collection/m-p/85739#M1602</guid>
      <dc:creator>RajsudhapriyaCN</dc:creator>
      <dc:date>2023-06-16T06:51:00Z</dc:date>
    </item>
    <item>
      <title>RE: Convert Text to collection</title>
      <link>https://community.blueprism.com/t5/University-Forum/Convert-Text-to-collection/m-p/85740#M1603</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The easiest way to achieve this without a code stage is by using the BP VBO's such as Strings &amp;amp; Collection Manipulation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steps:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Use split lines action from &lt;STRONG&gt;Utility - Strings&lt;/STRONG&gt; to convert the text into collection.&lt;/LI&gt;
&lt;LI&gt;Use Remove Empty Rows action from &lt;STRONG&gt;Utility - Collection Manipulation&lt;/STRONG&gt; to remove any empty rows.&lt;/LI&gt;
&lt;LI&gt;Loop the output collection obtained in the above stage.&lt;/LI&gt;
&lt;LI&gt;Check if the incoming row has any numbers in the text using regex match (Assuming the question value has a number. Based on the input string you can modify the regular expression) &lt;span class="lia-inline-image-display-wrapper" image-alt="32803.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/32901i673C25707985B6FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="32803.png" alt="32803.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;If matched, then add a new row to the output collection and set the incoming value as question in the output collection.&lt;/LI&gt;
&lt;LI&gt;if not matched, then the set the incoming string as option in the output collection.&amp;nbsp;Use the choice stage and set the options in the output collection accordingly. &lt;span class="lia-inline-image-display-wrapper" image-alt="32804.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/32904iF57BFAD65AADC04A/image-size/large?v=v2&amp;amp;px=999" role="button" title="32804.png" alt="32804.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI style="font-weight: bold;"&gt;&lt;STRONG&gt;Output Collection&lt;span class="lia-inline-image-display-wrapper" image-alt="32805.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/32905iCBD51712DBDE0560/image-size/large?v=v2&amp;amp;px=999" role="button" title="32805.png" alt="32805.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="32806.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/32908i4D4C7917790773D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="32806.png" alt="32806.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI style="font-weight: bold;"&gt;&lt;SPAN style="font-size: 14.6667px;"&gt;&lt;B&gt;Workflow&lt;span class="lia-inline-image-display-wrapper" image-alt="32807.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/32907i5204DB3DB3AB4029/image-size/large?v=v2&amp;amp;px=999" role="button" title="32807.png" alt="32807.png" /&gt;&lt;/span&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Athiban Mahamathi ,&lt;BR /&gt;SimplifyNext,&lt;BR /&gt;Technical Consultant&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Jun 2023 09:41:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Convert-Text-to-collection/m-p/85740#M1603</guid>
      <dc:creator>Athiban_Mahamathi</dc:creator>
      <dc:date>2023-06-16T09:41:00Z</dc:date>
    </item>
    <item>
      <title>RE: Convert Text to collection</title>
      <link>https://community.blueprism.com/t5/University-Forum/Convert-Text-to-collection/m-p/85741#M1604</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;it is not code stage but another simple way&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="32809.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/32910iEFD7B568A9510D72/image-size/large?v=v2&amp;amp;px=999" role="button" title="32809.png" alt="32809.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here "Pattern" is regex pattern&lt;/P&gt;
&lt;PRE class="language-vbnet"&gt;&lt;CODE&gt;(?&amp;lt;Question&amp;gt;\d+.*)[\r?\n]*(?&amp;lt;option1&amp;gt;.*)[\r?\n]*(?&amp;lt;option2&amp;gt;.*)[\r?\n]*(?&amp;lt;option3&amp;gt;.*)[\r?\n]*(?&amp;lt;option4&amp;gt;.*)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Initial string&amp;nbsp; is your string&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="32810.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/32912iA5F77FBB91B49FD7/image-size/large?v=v2&amp;amp;px=999" role="button" title="32810.png" alt="32810.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Output is just undefined collection&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="32811.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/32916iB944F82C2505A8A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="32811.png" alt="32811.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;will get output collection&lt;/P&gt;
&lt;P&gt;you can remove first column as below&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="32812.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/32915iCE1AADEB11C92612/image-size/large?v=v2&amp;amp;px=999" role="button" title="32812.png" alt="32812.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Provide collection name and column name you want to delete&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Lakshmi Narayana&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 17 Jun 2023 05:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Convert-Text-to-collection/m-p/85741#M1604</guid>
      <dc:creator>plnarayana777</dc:creator>
      <dc:date>2023-06-17T05:27:00Z</dc:date>
    </item>
  </channel>
</rss>

