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:

%s/\%(\%(foo=\"\)\@<=\%([0-9A-F]\{2\}\s\)*\)\@<=\([0-9A-F]\{2\}\)/0x\1/g


Tobia

Reply via email to