I built with M-x re-builder
a regex to match empty quoted lines in emails. In read
syntax it is:
"^>\\s-*\n>"
How can I copy this regex in re-builder, so that I can paste it in the first prompt of M-x replace-regexp
?
I tried the following:
After writing the regex in re-builder's read
mode I switched with Ctrl-C TAB
to string
syntax and copied the regex via Ctrl-C Ctrl-w
. Then I issued M-x replace-regexp
and pasted the regex but found "0 occurrences". Additionally I deleted the "
quotes characters from the pasted text and try again, but still got no matches. I guess, something goes wrong with the newline character...