1
Answer

Regex problem

Ask a question
yokzu

yokzu

13y
1.4k
1
Hello everyone,
I just want to filter decimal characters in rows. Rows are below;
------------
123,345,3,45,3
2,3,6,8,88,90
23,55,767,77
...
-----------
As you see there are commas between decimal numbers. I tryed the regex code below but it is getting me plus 1 value (and it is null).
--------
string regx = @"[\d*]";
Regex rrgx = new Regex(regx);
--------

For examle if a row is like this; and there will be 8 values when I try to get each sample via "MatchCollection"
------
12,23
-----

Which regular expression should I try to get these decimal numbers?

Answers (1)