Thank you
Best Regards,
Sakharam Thorat.
________________________________
From: sindelka <sinde...@ttc.cz>
Sent: Wednesday, October 19, 2016 2:26 PM
To: sipp-users@lists.sourceforge.net
Subject: Re: [Sipp-users] Regarding sipp regex
I usually want to be on the safe side so I would use
<ereg search_in="hdr" header="Refer-To:"
regexp=".*User-to-User=([0-9a-fA-F]*)%3bencoding%3dhex.*"
assign_to="dummy,user-to-user"/>
If you are 200% sure there won't ever be another hex string inside the Refer-To
value than the one you are interested in and that capital letters would always
be used, you may use
<ereg search_in="hdr" header="Refer-To:" regexp="[0-9A-F]{6,}"
assign_to="user-to-user"/>
Pavel
Dne 19.10.2016 v 10:40 Sakharam Thorat napsal(a):
Hi All,
I have extract 00FA08271007F558071CCB value from below header using regex,
Refer-To:
<sip:42...@hrd.com?User-to-User=00FA08271007F558071CCB%3bencoding%3dhex><sip:42...@hrd.com?User-to-User=00FA08271007F558071CCB%3bencoding%3dhex>
What regex i should use ?
Best Regards,
Sakharam Thorat.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users