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

下面这个正则视别不了 #121

Open
kefengzhang opened this issue Jan 15, 2024 · 2 comments
Open

下面这个正则视别不了 #121

kefengzhang opened this issue Jan 15, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@kefengzhang
Copy link

/([\x{4E00}-\x{9FCC}])([0-9]{4}[0-9]{2}[0-9]{2}--[0-9]{4}[0-9]{2}[0-9]{2})(\d.\d*)/u

@Bowen7 Bowen7 added the bug Something isn't working label Jan 15, 2024
@Bowen7
Copy link
Owner

Bowen7 commented Jan 15, 2024

当前还没有支持 unicode flag。

不过 \x{4E00} 这是 php 的写法?

@kefengzhang
Copy link
Author

是的,php还可以这样支持汉字:/\p{Han}+/u

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants