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?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.Sign up to join this community
[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".