Jhaunu_Gupta
Sep 18, 2019Nimbostratus
Scan header for mdn in irule through regex
Hi,
I want to get MDN from header through scan command with regex
below is the example of header.
% set toheader {tel:+12253941228;tag=MwsjgSMFBd}
tel:+12253941228;tag=MwsjgSMFBd
% scan $toheader {%[^:]:%[0-9]} t2 m2
1
% scan $toheader {%[^:]:%d} t2 m2
2
% puts "$m2"
2147483647
% scan $toheader {%[^:]:%s} t2 m2
2
% puts "$m2"
+12253941228;tag=MwsjgSMFBd
through 0-9 it is telling command is not correct with d its giving incorrect value.
please help quickly.
Thanks in advance