Re: repeat replace many time on each line

2007-04-03 Thread Arnaud Bourree
Tobia wrote on 02/04/2007 23:51: Bob Hiestand wrote: Tobia wrote: Arnaud Bourree wrote: I've Xml document with attribute likes: foo=00 12 AF I want to replace with: foo=0x00 0x12 0xAF this works: %s/\%(\%(foo=\\)\@=\%([0-9A-F]\{2\}\s\)*\)\@=\([0-9A-F]\{2\}\)/0x\1/g In using :s with

repeat replace many time on each line

2007-04-02 Thread Arnaud Bourree
Hello, I've Xml document with attribute likes: foo=00 12 AF I want to replace with: foo=0x00 0x12 0xAF I try: %s/\%(\%(foo=\\)\@=\%(0x[0-9A-F]\{2\}\s\)*\)\@=\([0-9A-F]\{2\}\)/0x\1/g It works fine for each first occurrence of each line but not on others whatever I've put g option. I have to use

Re: repeat replace many time on each line

2007-04-02 Thread Bob Hiestand
On 4/2/07, Tobia [EMAIL PROTECTED] wrote: Arnaud Bourree wrote: I've Xml document with attribute likes: foo=00 12 AF I want to replace with: foo=0x00 0x12 0xAF %s/\%(\%(foo=\\)\@=\%(0x[0-9A-F]\{2\}\s\)*\)\@=\([0-9A-F]\{2\}\)/0x\1/g this works:

Re: repeat replace many time on each line

2007-04-02 Thread Tobia
Bob Hiestand wrote: Tobia wrote: Arnaud Bourree wrote: I've Xml document with attribute likes: foo=00 12 AF I want to replace with: foo=0x00 0x12 0xAF this works: %s/\%(\%(foo=\\)\@=\%([0-9A-F]\{2\}\s\)*\)\@=\([0-9A-F]\{2\}\)/0x\1/g In using :s with the /g flag, I take it