[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A Regular Expression Question



 Hi.

On Tue, 10 Jun 2014 14:01:20 -0500
"Martin G. McCormick" <martin@server1.shellworld.net> wrote:

> The replacement pattern should actually be the same as the
> search pattern except that it is missing the & or ampersand.

Try it like this:

sed -r 's/&([a-z])/\1/g' <your_perl_files>

Or, in vim:

s/&\([a-z]\)/\1/g

Reco


Reply to: