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

我对此校验正则的功能有疑问: 非字母 #10

Closed
KKJUEE opened this issue Jul 12, 2019 · 2 comments
Closed

我对此校验正则的功能有疑问: 非字母 #10

KKJUEE opened this issue Jul 12, 2019 · 2 comments

Comments

@KKJUEE
Copy link

KKJUEE commented Jul 12, 2019

let str = "s "; //存在空格,此校验未达到目的。不应该遍历字符串的每一个字符吗?正则没有问题,但是在此暴露出来的功能存在疑问。

@any86
Copy link
Owner

any86 commented Jul 12, 2019

这个是有问题, 我想一下 @KKJUEE

@any86
Copy link
Owner

any86 commented Jul 12, 2019

/^[^A-Za-z]*$/

应该可以了, 我再测测, 你也试下.

any86 added a commit that referenced this issue Jul 12, 2019
@any86 any86 closed this as completed Jul 13, 2019
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

2 participants