I have similar text on more lines:
_AB_ _ABC_ _ OR
_ _A_ _ABC_
I need to replace only the underscores that delimit some text. So I need:
=AB= =ABC= _ OR
_ =A= =ABC=
How to match each pattern?
[A-Za-z]matches the chars A-Z and a-z. You could add other chars between
. Note: If you want to add a dash (
-), it has to be the first char after the opening
\+means "one or more".