In buffer I has text
"ADA-SGD"
"ADT-SGD"
"ADX-SGD"
"AID-SGD"
"AMP-SGD"
"ANT-SGD"
"ARDR-SGD"
"ARK-SGD"
M-x regexp-builder
Input regexp:
"\([A-Z]+\)-\([A-Z]+\)"
But I get message:
No match.
Why?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityTwo (2) backslashes are sufficient to get the job done:
"\\([A-Z]+\\)-\\([A-Z]+\\)"
"\\\([A-Z]+\\\)-\\\([A-Z]+\\\)"
. Also take a look at this answer emacs.stackexchange.com/a/5577/9970