-
Notifications
You must be signed in to change notification settings - Fork 187
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
ctre gives different result compared with icu and rust #286
Comments
Can you minimize it? |
Yes!
the code give me two matches, one is "戦場のヴァルキュリア" and the other is "3" but when I do the same regex search using ICU library and rust, they give me one match : "戦場のヴァルキュリア3" |
by the way, if I use this string :
|
|
For a compile-time regex library to be fully Unicode-aware is a huge ask, FYI @DamonsJ. Unicode is incredibly complex, requiring lots of very large lookup-tables and other short-circuiting mechanisms to implement all the code point identification logic correctly and efficiently. |
Thanks very much @marzer @iulian-rusu I know it is hard to fully support for unicode regex! For my question, I write pattern like this :
it works for me, but you know it is not exactly same with :
but hope to help others who has same problems! |
here is the test code :
rust and icu give the same result the matched string is "戦場のヴァルキュリア3"
and ctre gives two part "戦場のヴァルキュリア" and "3"
why that happen?
The text was updated successfully, but these errors were encountered: