Hi,
I've used the below regex expresssion to strip all the characters from a string value and only return the numbers.
If the input is: abc12aCode:String.Join(Nothing, System.Text.RegularExpressions.Regex.Split(strValue, "[^\d]"))
Output is: 12
The problem is that if I pass abc12.23a then the output is 1223 while I want is 12.23
Can somebody suggest what should I do?
Thanks.




Reply With Quote