<?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: Usage of extract regex Values in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76300#M28822</link>
    <description>That will work too, and it will be a little more flexible if you have invoice values of varying sizes (ie. multiple commas).&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Partner Integrations for Digital Exchange&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 31 Mar 2021 16:00:00 GMT</pubDate>
    <dc:creator>ewilson</dc:creator>
    <dc:date>2021-03-31T16:00:00Z</dc:date>
    <item>
      <title>Usage of extract regex Values</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76293#M28815</link>
      <description>&lt;P&gt;Hi guys,&lt;BR /&gt;i've some problems with using the "extract regex values".&lt;BR /&gt;I need to extract only number inside my string values.&lt;BR /&gt;EX. --&amp;gt; 998,145lb $ i need to extract 998145.&lt;BR /&gt;&lt;BR /&gt;I've found this pattern "\d+(\.\d{1,2})?" and i have 2 matches 998 and 145.&lt;BR /&gt;Is this pattern correct? I've tried with the test regex and the match is True but when i try to configure the extract regex values the collection is empty.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15478.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15636iFE6EC394985AD2C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="15478.png" alt="15478.png" /&gt;&lt;/span&gt;&lt;BR /&gt;So, my goal is to extract this text from a collection field (inside a loop) and then re-insert the correct data inside my collection, which is the best method to do that?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vrat Himbo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2021 13:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76293#M28815</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2021-03-30T13:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: Usage of extract regex Values</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76294#M28816</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/608"&gt;@VratHimbo&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;There are lots of different ways to match just numbers. The most basic is is simply &lt;STRONG&gt;\d+&lt;/STRONG&gt;. However, this will match each individual digit. Since you want to match complete numbers you can apply grouping as this &lt;STRONG&gt;(\d+)&lt;/STRONG&gt;. This will match only digits and will keep them in groups, so instead of getting 9 9 8 1 4 5 it will group them as 998 and 145.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Partner Integrations for Digital Exchange&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2021 16:13:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76294#M28816</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2021-03-30T16:13:00Z</dc:date>
    </item>
    <item>
      <title>RE: Usage of extract regex Values</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76295#M28817</link>
      <description>Thanks &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;,&lt;BR /&gt;how can I configure the collection in input and output to have the single value 998145?&lt;BR /&gt;&lt;BR /&gt;I haven't found bp documentation about this object.&lt;BR /&gt;&lt;BR /&gt;Thanks, ​​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vrat Himbo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2021 17:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76295#M28817</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2021-03-30T17:23:00Z</dc:date>
    </item>
    <item>
      <title>RE: Usage of extract regex Values</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76296#M28818</link>
      <description>Which VBO are you using for your regex work?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Partner Integrations for Digital Exchange&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2021 19:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76296#M28818</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2021-03-30T19:52:00Z</dc:date>
    </item>
    <item>
      <title>RE: Usage of extract regex Values</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76297#M28819</link>
      <description>I need to use the one in utility string in blue prism.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vrat Himbo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2021 20:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76297#M28819</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2021-03-30T20:57:00Z</dc:date>
    </item>
    <item>
      <title>RE: Usage of extract regex Values</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76298#M28820</link>
      <description>Ah, I think I understand what's going on now. The &lt;STRONG&gt;Extract Regex Values &lt;/STRONG&gt;action assumes you will pass in a regular expression that uses Named Groups. This is a bit limiting in my opinion because it's basically assuming your input data will always be the same consistent format. In your particular case, this may apply if you're only dealing with prices like in your example. However, if the input data could vary in any way you need more flexibility.&lt;BR /&gt;&lt;BR /&gt;To answer your specific example, you'd want go with a regex like this &lt;STRONG&gt;(?&amp;lt;Group1&amp;gt;\d+)\D(?&amp;lt;Group2&amp;gt;\d+)&lt;/STRONG&gt;. Then you would want to populate two rows in the &lt;STRONG&gt;Named Values&lt;/STRONG&gt; collection and set the Name of each row to &lt;STRONG&gt;Group1&lt;/STRONG&gt; and &lt;STRONG&gt;Group2&lt;/STRONG&gt; respectively. When you run it, the response collection will look like this:&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15456.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15622iA78C8E9F66444914/image-size/large?v=v2&amp;amp;px=999" role="button" title="15456.png" alt="15456.png" /&gt;&lt;/span&gt;&lt;BR /&gt;After that, it's just a matter of cycling through that collection and concatenating the values together into your new collection.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Partner Integrations for Digital Exchange&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2021 21:18:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76298#M28820</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2021-03-30T21:18:00Z</dc:date>
    </item>
    <item>
      <title>RE: Usage of extract regex Values</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76299#M28821</link>
      <description>Thanks &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;,&lt;BR /&gt;last question, in your opinion is a good approach to loop inside the collection and use the "replace" function if i have a fixed value?&lt;BR /&gt;For example: 998.145 $ Replace(Trim("collection.Invoice","$",""))​&lt;BR /&gt;and the same for the comma?&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vrat Himbo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Mar 2021 15:31:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76299#M28821</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2021-03-31T15:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: Usage of extract regex Values</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76300#M28822</link>
      <description>That will work too, and it will be a little more flexible if you have invoice values of varying sizes (ie. multiple commas).&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Partner Integrations for Digital Exchange&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Mar 2021 16:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76300#M28822</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2021-03-31T16:00:00Z</dc:date>
    </item>
    <item>
      <title>RE: Usage of extract regex Values</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76301#M28823</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;&lt;BR /&gt;Thanks for your reply!&lt;BR /&gt;&lt;BR /&gt;As I was searching for this for hours. It would benefit others if there's a bit screenshots explaining what​ is discussed here.&lt;BR /&gt;&lt;BR /&gt;1. Set up the Data item&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15462.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15625i5F2394ABB7FB4657/image-size/large?v=v2&amp;amp;px=999" role="button" title="15462.png" alt="15462.png" /&gt;&lt;/span&gt;&lt;BR /&gt;2. Set up a collection with "Fields" and "Initial Values"&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15463.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15627i68B958411B41F9AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="15463.png" alt="15463.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15464.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15626iE5EAE6C12659487F/image-size/large?v=v2&amp;amp;px=999" role="button" title="15464.png" alt="15464.png" /&gt;&lt;/span&gt;&lt;BR /&gt;3. Set up an action. In the "Regex Pattern", use the correct format "(?&amp;lt;&lt;SPAN style="color: #000000; background-color: #ffff00;"&gt;Name (Text)&lt;/SPAN&gt;&amp;gt;)&lt;SPAN style="background-color: #00ff00;"&gt;RegEx&lt;/SPAN&gt;"&lt;BR /&gt;* &lt;SPAN style="color: #000000;"&gt;Name (Text), this is what you wrote in the collection initial value&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffff00;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;* RegEx, this is normal RegEx pattern&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15465.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15628i8D3C215C53B170EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="15465.png" alt="15465.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15466.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15629i4F1BC4EF83C31E97/image-size/large?v=v2&amp;amp;px=999" role="button" title="15466.png" alt="15466.png" /&gt;&lt;/span&gt;&lt;BR /&gt;4. The collection will now have 1 matched result&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15467.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15632i72B032C0B79D3B04/image-size/large?v=v2&amp;amp;px=999" role="button" title="15467.png" alt="15467.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Hao Wu&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jun 2021 11:33:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76301#M28823</guid>
      <dc:creator>HaoWu</dc:creator>
      <dc:date>2021-06-21T11:33:00Z</dc:date>
    </item>
    <item>
      <title>RE: Usage of extract regex Values</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76302#M28824</link>
      <description>&lt;P&gt;Hello &lt;SPAN&gt;Hao Wu,&lt;BR /&gt;Great initiative compiling the solution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Made my life easy.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ved Sengupta&lt;BR /&gt;RPA Developer&lt;BR /&gt;Bangalore | INDIA&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Jun 2021 18:28:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Usage-of-extract-regex-Values/m-p/76302#M28824</guid>
      <dc:creator>VedSengupta</dc:creator>
      <dc:date>2021-06-22T18:28:00Z</dc:date>
    </item>
  </channel>
</rss>

