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

你的整数正则, 0 这个数字无法通过 #4

Open
ningpeng opened this issue Mar 20, 2019 · 2 comments
Open

你的整数正则, 0 这个数字无法通过 #4

ningpeng opened this issue Mar 20, 2019 · 2 comments

Comments

@ningpeng
Copy link

No description provided.

@Kairo-Dai
Copy link

^(-?[1-9]\d*)$|^0$
image

@Kairo-Dai
Copy link

https://regexper.com/ 对于使用了分支的正则处理不是很好,需要增加多余的行开始和行结束符号。~
https://regex101.com/ 这个处理则没有问题,

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