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

/(\d)(?=(\d\d\d)+(?!\d))/g.exec(100000000) 这个正则怎么读 #11

Closed
bigvaliant opened this issue May 31, 2019 · 2 comments
Closed

Comments

@bigvaliant
Copy link
Collaborator

bigvaliant commented May 31, 2019

(\d) 数字分组
(?=(\d\d\d)+(?!\d)) 这个读不来
image

“100000000”.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,")

@bigvaliant
Copy link
Collaborator Author

image

@smltq
Copy link
Owner

smltq commented Jun 1, 2019

@smltq smltq closed this as completed Jun 1, 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