I have following string value which is coming from database.
str= ">= 5.0 years"
Now from this string i want the value of double number (5.0). How can i get this value from this string?
Can any one tell me how to get the value like 5.0 from above string?
Thanks in advance.
Try using this pattern:
PATTERN
I'm not sure how to use regex in Visual Basic, however this C# code should help you:
C# code
Maybe as simple as it is:
[\d.]+
matches the floating point number