我有这个
模式:
[0-9]*\.?[0-9]*
目标:
X=113.3413475 Y=18.2054775
我希望您能够匹配这些数字。在测试软件中,如http://regexpal.com/和Regex Coach中,它们的匹配效果很好。
但是,在Dot net和http://derekslager.com/blog/posts/2007/09/a-better-dotnet-regular-expression-tester.ashx中,我得到了以下结果:
Found 11 matches:
1.
2.
3.
4.
5.
6. 113.3413475
7.
8.
9.
10. 18.2054775
11.
String literals for use in programs:
C#
@"[0-9]*[\.]?[0-9]*"
有人知道为什么我会得到所有这些空匹配吗?
谢谢和问候, Kevin