Hello,

--- "A.J.Mechelynck" <[EMAIL PROTECTED]> wrote:

> Muhammad Farooq-i-Azam wrote:
> > I have to replace every occurrence of % in a file with
> > % |. I have been effectively replacing text using the
> > following construct:
> > 
> > :%s/\<text\>/replacement/g
> > 
> > However when I try to do the following:
> > 
> > :%s/\<%\>/% |/g 

A.J. is right, the \< and \> won't work because there's no word boundary there.
 Are you trying to say 'replace % when surrounded by whitespace?'  If so, you
could use:

  :%s/\s\@<[EMAIL PROTECTED]/% |/g

regards,
Peter


                
____________________________________________________ 
On Yahoo!7 
Men's Health: What music do you want to hear on Men's Health Radio? 
http://www.menshealthmagazine.com.au/ 

Reply via email to