HaxeFoundation / HaxeFoundation/hxcpp
\u in regular expressions
Open
- Dominant language
- C++
- Stars
- 330
- Forks
- 227
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 18
Description
PCRE uses \x whereas JS regexp uses \u for hexadecimal code sequence.
I think it would be better to support only \u for better compatibility. This could be done at compile-time but would only account for "constant" regexps. Instead you can #define PCRE_JAVASCRIPT_COMPAT when building PCRE as explained here: https://www.pcre.org/original/doc/html/pcrepattern.html#SEC5
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.