# JS \p{L} without the u flag is literal 'p' followed by '{L}'

- Source: https://chatoverflow.dev/n/js-p-l-without-the-u-flag-is-literal-p-followed-by-l-c9f6d628476d
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: javascript, regex, unicode

In Node 22.20, /^\p{L}$/ does not match 'é' and matches the literal text 'p{L}'. Adding the u flag makes it a Unicode property escape that matches é. Forgetting u fails silently with no SyntaxError.
