<?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 Numeric values from String in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/how-to-Numeric-values-from-String/m-p/77025#M29377</link>
    <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/33816"&gt;@Haribp&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;Adding to &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/2208"&gt;@PvD_SE&lt;/a&gt;'s reply, rather than using the "Regex Extract" action in BP's Utility String VBO​​, you can use the "Regex Replace" action to replace all non numeric characters with blanks. It is one action that passes out the value to one text data item.&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV&gt;If you can't make it out from the image, the parameters are:&lt;/DIV&gt;
&lt;DIV style="padding-left: 40px;"&gt;&lt;STRONG&gt;Pattern:&lt;/STRONG&gt; "[^0-9]"&lt;BR /&gt;&lt;STRONG&gt;Input Data:&lt;/STRONG&gt; "The123Rain456In789Spain!@#$."&lt;BR /&gt;&lt;STRONG&gt;Replacement Data:&lt;/STRONG&gt; ""&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="22815.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/22950i6CEE26667BB2DD47/image-size/large?v=v2&amp;amp;px=999" role="button" title="22815.png" alt="22815.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;BR /&gt;The Regex pattern "[^0-9]" uses a negative character group &lt;STRONG&gt;[^]&amp;nbsp;&lt;/STRONG&gt;to specify any character not between 0 and 9 (inclusive) in a Unicode codespace.&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, 25 Mar 2022 17:55:00 GMT</pubDate>
    <dc:creator>MichealCharron</dc:creator>
    <dc:date>2022-03-25T17:55:00Z</dc:date>
    <item>
      <title>how to Numeric values from String</title>
      <link>https://community.blueprism.com/t5/Product-Forum/how-to-Numeric-values-from-String/m-p/77021#M29373</link>
      <description>I Have a string that contains alphabets and numbers and Special characters .How can i get only numbers from string using blueprism?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Hari bp&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Mar 2022 10:21:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/how-to-Numeric-values-from-String/m-p/77021#M29373</guid>
      <dc:creator>Haribp</dc:creator>
      <dc:date>2022-03-24T10:21:00Z</dc:date>
    </item>
    <item>
      <title>RE: how to Numeric values from String</title>
      <link>https://community.blueprism.com/t5/Product-Forum/how-to-Numeric-values-from-String/m-p/77022#M29374</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/33816"&gt;@Haribp&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;​In this case you can use the typical conversion functions. (ToNumber())&lt;BR /&gt;&lt;BR /&gt;You will need to use some code to achieve this.&lt;BR /&gt;&lt;BR /&gt;With this code, you will get from the string "ab2c3d1" this 231 as a Number&lt;BR /&gt;&lt;BR /&gt;&lt;CODE language="C#"&gt;string content = string.Empty;&lt;BR /&gt;for (int i=0; i&amp;lt; text.Length; i++)&lt;BR /&gt;{&lt;BR /&gt;if (Char.IsDigit(text&lt;I&gt;))&lt;BR /&gt;{&lt;BR /&gt;content += text&lt;I&gt;;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;if (b.Length&amp;gt;0)&lt;BR /&gt;{&lt;BR /&gt;integer = int.Parse(b);&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;integer = 0;&lt;BR /&gt;}&lt;/I&gt;&lt;/I&gt;&lt;/CODE&gt;&lt;I&gt;&lt;I&gt;&lt;BR /&gt;&lt;BR /&gt;In this case, "text" is your input value. Your string with alphanumerics and numbers.&lt;BR /&gt;&lt;BR /&gt;And "integer" is your output value. I cast this as a number at the end.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps you. And if this solves the problem, remember mark as the best answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;See you in the community, bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Architect&lt;BR /&gt;Altamira Assets Management&lt;BR /&gt;Madrid&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/I&gt;&lt;/I&gt;</description>
      <pubDate>Thu, 24 Mar 2022 10:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/how-to-Numeric-values-from-String/m-p/77022#M29374</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-03-24T10:46:00Z</dc:date>
    </item>
    <item>
      <title>RE: how to Numeric values from String</title>
      <link>https://community.blueprism.com/t5/Product-Forum/how-to-Numeric-values-from-String/m-p/77023#M29375</link>
      <description>As an alternative to the code stage, Regex could be considered. With a pattern in style with "\d+" or perhaps "[0-9]+" to extract only numerical values from a given text string.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Mar 2022 12:05:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/how-to-Numeric-values-from-String/m-p/77023#M29375</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2022-03-24T12:05:00Z</dc:date>
    </item>
    <item>
      <title>RE: how to Numeric values from String</title>
      <link>https://community.blueprism.com/t5/Product-Forum/how-to-Numeric-values-from-String/m-p/77024#M29376</link>
      <description>Hi Hari,&lt;BR /&gt;&lt;BR /&gt;You can extract numbers from a string by using Right, Left, IsNumber Functions natively, without using code stage or Regex.
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="22813.jpg"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/22953iE516EB643FED2931/image-size/large?v=v2&amp;amp;px=999" role="button" title="22813.jpg" alt="22813.jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;BR /&gt;And&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="22814.jpg"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/22954i75D3A875D902DBF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="22814.jpg" alt="22814.jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;naveen k&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Mar 2022 13:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/how-to-Numeric-values-from-String/m-p/77024#M29376</guid>
      <dc:creator>NaveenRPA</dc:creator>
      <dc:date>2022-03-24T13:56:00Z</dc:date>
    </item>
    <item>
      <title>RE: how to Numeric values from String</title>
      <link>https://community.blueprism.com/t5/Product-Forum/how-to-Numeric-values-from-String/m-p/77025#M29377</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/33816"&gt;@Haribp&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;Adding to &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/2208"&gt;@PvD_SE&lt;/a&gt;'s reply, rather than using the "Regex Extract" action in BP's Utility String VBO​​, you can use the "Regex Replace" action to replace all non numeric characters with blanks. It is one action that passes out the value to one text data item.&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV&gt;If you can't make it out from the image, the parameters are:&lt;/DIV&gt;
&lt;DIV style="padding-left: 40px;"&gt;&lt;STRONG&gt;Pattern:&lt;/STRONG&gt; "[^0-9]"&lt;BR /&gt;&lt;STRONG&gt;Input Data:&lt;/STRONG&gt; "The123Rain456In789Spain!@#$."&lt;BR /&gt;&lt;STRONG&gt;Replacement Data:&lt;/STRONG&gt; ""&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="22815.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/22950i6CEE26667BB2DD47/image-size/large?v=v2&amp;amp;px=999" role="button" title="22815.png" alt="22815.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;BR /&gt;The Regex pattern "[^0-9]" uses a negative character group &lt;STRONG&gt;[^]&amp;nbsp;&lt;/STRONG&gt;to specify any character not between 0 and 9 (inclusive) in a Unicode codespace.&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, 25 Mar 2022 17:55:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/how-to-Numeric-values-from-String/m-p/77025#M29377</guid>
      <dc:creator>MichealCharron</dc:creator>
      <dc:date>2022-03-25T17:55:00Z</dc:date>
    </item>
  </channel>
</rss>

