模式:
[0-9]*\.?[0-9]*
目标:
X=113.3413475 Y=18.2054775
,我想匹配的数字。它与http://regexpal.com/和Regex Coach等测试软件匹配。
但在点网和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]*"
任何一个有为什么我得到所有这些空匹配任何想法。
感谢和问候, 凯文
使某些东西是强制性的。 –