0

This question is an exact duplicate of:

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.

enter image description here

Why?

marked as duplicate by phils, DoMiNeLa10 Jan 9 at 22:40

This question was marked as an exact duplicate of an existing question.

2

Two (2) backslashes are sufficient to get the job done:

"\\([A-Z]+\\)-\\([A-Z]+\\)"
2

Probably you want to select the string syntax.

  (setq reb-re-syntax 'string)

re-syntax

Not the answer you're looking for? Browse other questions tagged or ask your own question.