[]-35566/レス
Re[1]: 兆億万表記の文字列を数値に変換できる?
Azulean

以下の部分を、
string Pattan円 = "(\\d{1,4})円";

以下のように変更すればいけるのではないでしょうか?
string Pattan円 = "(\\d{1,4})円?$";


? … 直前の文字が 0 回 or 1回数出現
$ … 文末を意味する。

https://learn.microsoft.com/ja-jp/dotnet/standard/base-types/regular-expression-language-quick-reference

12/17 20:44
[|]
35564のレス
35566にレスを書く
<前のレス

Child K-Tai