I intend to keep all the numbers (including decimals) and convert them into Double Variable. But these numbers are mixed with alphabets as shown below:
2eq3wecesf4 => 234
vre435vfdvb => 435
efwer4.545dv => 4.545
The matches should work as given in the above example, it’s given that a decimal will occur only once. I am using this regular expression: [0-9]|\.
Even though this tests fine on regex101, when I use it like this:
System.Text.RegularExpressions.Regex.Match(in_number,"[0-9]|\.").ToString
for the input: "asdfsvret234vdvsfbeg0"
I get only 2
.
Not sure whats going wrong.