I'm in vi trying a global search and replace and I've exhausted my
abilities. The string I'm trying to find is any alpha character followed by
a carot followed by a pipe and replace it with the same alpha character
followed by a pipe. Basically eliminating the carot.
I can find my string with:
But I don't know how to replace the character found with [A-Z] with the
character found. I've tried metacharacters . and * with no luck. Basically
I've tried the follow, none of which work. Any help?
:1,$s/[A-Z]\^|/.|/g (and same with * instead of .)
:1,$s/[A-Z]\^|/\.|/g (and same with * instead of .)