Hohoh, good one! I already found a different way to do what I wanted (wrote a script), but I'll remember this for later. And thanks for the quick response. Siren is awesome, keep it up, Rémi. smile

Funny that this thread is at the top! I came here today wondering if there was a way to do pretty much this.. Except in my case, I'd like to do it on two [b]hex[/b] numbers.

I got a bunch of files that ends with offset numbers in hex, like this:
0x0-0xa0800.dat
0xa0800-0x110000.dat
0x110000-0x1b2800.dat
...

I would have liked to rename them like so:
0x00000000-0x000a0800.dat
0x000a0800-0x00110000.dat
0x00110000-0x001b2800.dat
...

I tried this (which I thought would work, but.. I guess not):
%b(s/(.+?)0x([0-9a-f]+)\-0x([0-9a-f]+)/\10x\2{8}-\3{8}/)

But I guess you can't use Siren modifiers inside the regex replacement format, huh? Also, how do I escape literal numbers right after group references in the replacement format (like that "\10x", which should be interpreted as "\1" -> "0x", and not "\10" -> "x")?

(I had to put the text inside code tags because it stripped EOLs for some reason..)