我有 12.00 Php 字符串,我只想获得12.00。有人可以帮我这个吗?我发现谷歌很难做到这一点。 TryParse 或任何转化无效,或返回0.
Dim i As String = "12.00Php"
答案 0 :(得分:1)
Dim regex As Regex = New Regex("\d+.\d+")
Dim match As Match = regex.Match("12.00php")
If match.Success Then
Console.WriteLine(match.Value)
End If