regexp-tree icon indicating copy to clipboard operation
regexp-tree copied to clipboard

Regex with 'u' flag and escaped special characters can't be parsed

Open regseb opened this issue 7 years ago • 4 comments

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 (*, +, ?, (, ), |, [, \).

regseb avatar Sep 15 '18 20:09 regseb

See: https://github.com/westurner/dotfiles/blob/develop/scripts/venv_relabel.sh

  • https://github.com/westurner/dotfiles/commit/b901451ba9e62c3a7bb47a25e654c9519e355ffd
    • (This does require sudo access)

westurner avatar Sep 13 '15 04:09 westurner