regexp-tree
regexp-tree copied to clipboard
Regex with 'u' flag and escaped special characters can't be parsed
Hi,
Regex with unicode flag and some escaped special characters can't be parsed. For example the command regexp-tree -e '/\./u' returns "invalid Unicode escape \.". And also:
/\^/u/\$/u/\{/u/\}/u/\]/u
The other special characters work (*, +, ?, (, ), |, [, \).
See: https://github.com/westurner/dotfiles/blob/develop/scripts/venv_relabel.sh
- https://github.com/westurner/dotfiles/commit/b901451ba9e62c3a7bb47a25e654c9519e355ffd
- (This does require sudo access)