Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将数字与这样的句子分开?
Z 90.00000
或者
47540.00000
您可以使用类似下面的正则表达式:
Dim regex As Regex = New Regex("\d+\.\d+") Dim match As Match = regex.Match("Z 90.00000") If match.Success Then Console.WriteLine(match.Value)
这是一个包含很棒的 RegEx 教程和参考资料的网站:
http://www.regular-expressions.info/dotnet.html