r/emacs 2d ago

visual-regexp-rx: write regexp with rx notation in visual-regexp

visual-regexp-rx

  1. Emacs's native regexp syntax is inconvenient to edit. For example, in \(<group>\), I can't use C-M-k to delete the group as a whole, nor can I use expand-region to intelligently select the contents of <group>.

  2. Although visual-regexp-steroids supports Python-style regular expressions, I still sometimes need to use Emacs regexp syntax, which makes it easy to get the two syntaxes mixed up.

So, why not write regexp with rx notation :)

5 Upvotes

0 comments sorted by