How to find number(int, float) in a string (fast method)?
For example: “Question 1” and “Question 2.1”.
I need that in variable would be only number.
Thanks.
How to find number(int, float) in a string (fast method)? For example: Question 1
Share
you can use this
([0-9]\.*)*[0-9]regex to get it. you can test any regex hereEdit
this sample code in
C#