Recursive search in HMR
Hi
I have a history-info that looks like this (but there could be more redirections, so more index=):
HISTORY-INFO: <sip:+46123456789@test.test;user=phone>;index=1;ms-retarget-reason=forwarding,<sip:+46223456789@test.test;user=phone>;index=1.1
Which regexp could I use to match all the preceding of every index=1* so that I can get:
$0 <sip:+46123456789@test.test;user=phone>;index=1;
$1 ms-retarget-reason=forwarding,<sip:+46223456789@test.test;user=phone>;index=1.1
I need to remap these to diversion (unless there´s a better way to do it).
Thanks
Diego