myPattern = @"?:[.]?[d]+(?:[,.]*d)*";
然而,我要排除美元签字后的数字,并想排除括号中的数字()}[]。
例如:
input text (match)
-----------------------------
abc123,000.5xyz (match:123,000.5)
abc.5xyz (match:.5)
abc0.2xyz (match:0.2)
abc123.2xyz (match:123.2)
abc$123xyz (false)
abc(123)77xyz (match:77)
abc12{123}xyz (match:12)
abc[123]xyz (false)