Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

例子好像有点问题 #5

Open
GRPdream opened this issue Apr 12, 2019 · 2 comments
Open

例子好像有点问题 #5

GRPdream opened this issue Apr 12, 2019 · 2 comments

Comments

@GRPdream
Copy link

2.4花括号实例那里
"[0-9]{2}" => The number was 9.9997 but we rounded it off to 10.0.
这里匹配的应该只有后面的10吧

@kas0n
Copy link

kas0n commented Aug 24, 2019

他的意思应该是["99","97","10"]吧。。。

@Higurashi-kagome
Copy link
Contributor

Higurashi-kagome commented Dec 15, 2020

在字符串 The number was 9.9997 but we rounded it off to 10.0. 中,[0-9]{2} 匹配到三个字符串:999710。因为 9997 相邻,所以你可能将其误会为 [0-9]{2} 匹配到了 9997@GRPdream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants