<?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: how to remove duplicate from String? in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/how-to-remove-duplicate-from-String/m-p/66262#M18867</link>
    <description>Hi Sai,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Use regex expression to remove duplicate numbers.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Devendra Kumar Prajapati&lt;BR /&gt;RPA Manager&lt;BR /&gt;Infosys &lt;BR /&gt;Chandigarh, India&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 11 May 2022 05:14:00 GMT</pubDate>
    <dc:creator>Devendra_KumarP</dc:creator>
    <dc:date>2022-05-11T05:14:00Z</dc:date>
    <item>
      <title>how to remove duplicate from String?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/how-to-remove-duplicate-from-String/m-p/66261#M18866</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a string Input="225336675992", I need to remove Duplicate number which followed by Other. i need output aas&lt;BR /&gt;output="25367592".kindly help me.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sai&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 11 May 2022 04:21:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/how-to-remove-duplicate-from-String/m-p/66261#M18866</guid>
      <dc:creator>Sai</dc:creator>
      <dc:date>2022-05-11T04:21:00Z</dc:date>
    </item>
    <item>
      <title>RE: how to remove duplicate from String?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/how-to-remove-duplicate-from-String/m-p/66262#M18867</link>
      <description>Hi Sai,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Use regex expression to remove duplicate numbers.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Devendra Kumar Prajapati&lt;BR /&gt;RPA Manager&lt;BR /&gt;Infosys &lt;BR /&gt;Chandigarh, India&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 11 May 2022 05:14:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/how-to-remove-duplicate-from-String/m-p/66262#M18867</guid>
      <dc:creator>Devendra_KumarP</dc:creator>
      <dc:date>2022-05-11T05:14:00Z</dc:date>
    </item>
    <item>
      <title>RE: how to remove duplicate from String?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/how-to-remove-duplicate-from-String/m-p/66263#M18868</link>
      <description>Hi Sai,&lt;BR /&gt;&lt;BR /&gt;There are many ways to do this : A code stage , Regular Expression and a logic using Calculation stage and decisions.&lt;BR /&gt;&lt;BR /&gt;I have attached the simple solution using Calculation stages. Remove the .txt from the file name and then import the BP Release. The logic is to extract each character from Input String, store the character in a data item and then compare the current character with the previous one. If the current character doesn't match the previous one, the flow will keep on concatenating and store it in the output data item. Since, the input is a string, it will work for numbers as well as letters or a combination of both. Let me know if you need any help.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vikrant Sharma&lt;BR /&gt;Senior Solution Designer&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 11 May 2022 05:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/how-to-remove-duplicate-from-String/m-p/66263#M18868</guid>
      <dc:creator>VikrantSharma</dc:creator>
      <dc:date>2022-05-11T05:44:00Z</dc:date>
    </item>
    <item>
      <title>RE: how to remove duplicate from String?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/how-to-remove-duplicate-from-String/m-p/66264#M18869</link>
      <description>Hi,&lt;BR /&gt;I am not able to import that file. please update .bprelease file, that will vey helpful for me.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Hari bp&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 11 May 2022 06:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/how-to-remove-duplicate-from-String/m-p/66264#M18869</guid>
      <dc:creator>Haribp</dc:creator>
      <dc:date>2022-05-11T06:51:00Z</dc:date>
    </item>
    <item>
      <title>RE: how to remove duplicate from String?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/how-to-remove-duplicate-from-String/m-p/66265#M18870</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use a simple logic as shown below:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="27051.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/27183i15F588C00E77EB53/image-size/large?v=v2&amp;amp;px=999" role="button" title="27051.png" alt="27051.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Here, first I used 'Split Text By Lines' action from 'Utility - Strings' VBO :&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="27052.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/27182i1F84D35B99146009/image-size/large?v=v2&amp;amp;px=999" role="button" title="27052.png" alt="27052.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="27053.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/27181i9EB377EFB58D8FC7/image-size/large?v=v2&amp;amp;px=999" role="button" title="27053.png" alt="27053.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Next, I've iterated over the 'Split Values' collection using a Loop stage which has the following values:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="27054.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/27184i68C025FFED1FE72B/image-size/large?v=v2&amp;amp;px=999" role="button" title="27054.png" alt="27054.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Next, I have used a decision stage to check if my current character exists in a 'Results' (Text) data item or not which initially would be blank:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="27055.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/27185iA8A1B7B92411C91D/image-size/large?v=v2&amp;amp;px=999" role="button" title="27055.png" alt="27055.png" /&gt;&lt;/span&gt;&lt;BR /&gt;If the value exists, I simply skip over the iteration otherwise I will add the value to the 'Results' data item:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="27056.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/27186i56F274742A85308D/image-size/large?v=v2&amp;amp;px=999" role="button" title="27056.png" alt="27056.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="27057.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/27189i8D7835D724BD62C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="27057.png" alt="27057.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;At the end of the loop stage, I get the following results:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="27058.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/27187i63D81575DA02B695/image-size/large?v=v2&amp;amp;px=999" role="button" title="27058.png" alt="27058.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;You can find the attached process for more details:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you out and if my solution resolves your query, then please mark it as the 'Best Answer' so that the others members in the community having similar problem statement can track the answer easily in future&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,&lt;BR /&gt;Wonderbotz India Pvt. Ltd.&lt;BR /&gt;Blue Prism Community MVP | Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 11 May 2022 07:05:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/how-to-remove-duplicate-from-String/m-p/66265#M18870</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-05-11T07:05:00Z</dc:date>
    </item>
    <item>
      <title>RE: how to remove duplicate from String?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/how-to-remove-duplicate-from-String/m-p/66266#M18871</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;With the risk of stating the obvious, did you try to remove the ".txt" extension from the release file name and then tried to import it? I have anyway attached a .zip for the release if that's not the case.&lt;BR /&gt;&lt;BR /&gt;Also, what's the Blue Prism version you're using? The process was built in 7.0.1 so just checking if you're seeing errors because of a low version of Blue Prism.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vikrant Sharma&lt;BR /&gt;Senior Solution Designer&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 11 May 2022 08:40:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/how-to-remove-duplicate-from-String/m-p/66266#M18871</guid>
      <dc:creator>VikrantSharma</dc:creator>
      <dc:date>2022-05-11T08:40:00Z</dc:date>
    </item>
    <item>
      <title>RE: how to remove duplicate from String?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/how-to-remove-duplicate-from-String/m-p/66267#M18872</link>
      <description>Hi Sai&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;We can remove duplicates from string without using &lt;STRONG&gt;Regex, Object and Code Stage.&lt;/STRONG&gt;&lt;BR /&gt;See below snapshot i have used only 5 stages and by using &lt;STRONG&gt;Left, Right and Len&lt;/STRONG&gt; function we can remove duplicates.&lt;BR /&gt;I have attached process you can refer.&lt;BR /&gt;
&lt;PRE class="language-csharp"&gt;&lt;CODE&gt;//Inside stages code

//Calc stage
//Get First Char, Store in [Temp]
Left([Input], 1)

//Decision Stage
//isCount?
([Count]-1)&amp;lt;Len([Input])

//Decision Stage
//isSame?
[Temp]=Left(Right([Input], Len([Input])-[Count]),1)

//Calc stage
//Append Value, Store in [Unique Number]
[Unique Number]&amp;amp;[Temp]

//Calc stage
//Get Next Char, Store in [Temp]
Left(Right([Input], Len([Input])-[Count]),1)

//Calc stage
//Count++, Store in [Count]
[Count]+1​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="27059.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/27192iEEF0ED30D3AE14DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="27059.png" alt="27059.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;naveen k&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 12 May 2022 11:36:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/how-to-remove-duplicate-from-String/m-p/66267#M18872</guid>
      <dc:creator>NaveenRPA</dc:creator>
      <dc:date>2022-05-12T11:36:00Z</dc:date>
    </item>
  </channel>
</rss>

