When I use the regexp-builder
, I need to escape things in a different way from the way I do it when using replace-regexp
. Now, this thread explains that these two commands use a different syntax, but why is that?
Also, I went through this blog post: Re-builder: The Interactive Regexp Builder, and I added
(require 're-builder)
(setq reb-re-syntax 'string)
to my .emacs
file following the advice on the site. However, I still need to type "
around my regexp to make it work. I thought changing the syntax language would take care of this but it doesn't.
With this, my actual questions are:
- Is it sill the case that Emacs does not support PCRE? Are there any workarounds to this?
- Once I have the right regexp in
regex-builder
, is there any way to directly send the regexp toreplace-regexp
and enter the replacement string?