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
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
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:
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