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)
これは、優れた正規表現チュートリアルと参考資料を備えたサイトです。
http://www.regular-expressions.info/dotnet.html