# Extract demimal Value from string\[\]

**URL:** <https://forum.uipath.com/t/extract-demimal-value-from-string/32069>\
**Category:** Help\
**Tags:** ocr, system, activities\
**Created:** [May 11, 2018, 8:24am UTC](https://forum.uipath.com/t/extract-demimal-value-from-string/32069 "2018-05-11T08:24:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdel](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@abdel](https://forum.uipath.com/u/abdel)\
**Post date:** [May 11, 2018, 8:24am UTC](https://forum.uipath.com/t/extract-demimal-value-from-string/32069/1 "2018-05-11T08:24:31Z")

</div>

Hello,

I want to extract decimal value “ex: 1.00; 1.5” from a table of string string

I had scapped this:

mamas  
33 mm:  
1 .00  
using get OCR text and i want to extract 1.00,

---

<div class="post-metadata">

**Author:** ![Tiberiu\_Niculescu](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/tiberiu_niculescu/32/177057_2.png) [@Tiberiu\_Niculescu](https://forum.uipath.com/u/Tiberiu_Niculescu)\
**Post date:** [May 11, 2018, 8:42am UTC](https://forum.uipath.com/t/extract-demimal-value-from-string/32069/2 "2018-05-11T08:42:13Z")

</div>

try using the following regex in a matches activity ^(\d\*.)?\d+$

---

<div class="post-metadata">

**Author:** ![abdel](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@abdel](https://forum.uipath.com/u/abdel)\
**Post date:** [May 11, 2018, 9:58am UTC](https://forum.uipath.com/t/extract-demimal-value-from-string/32069/3 "2018-05-11T09:58:59Z")

</div>

i’m trying to use System.Text.RegularExpressions.Regex.Split(phrase(compteur), @“[^0-9.]+”).Where(c =\> c != “.” && c.Trim() != “”) but error: expression expected
