You can get rid of $5, but not $1 (the whole matched expression):

<ereg regexp="sip:.*;tag=(.*)" search_in="hdr" header="To:" 
check_it="true" assign_to="1,6" />

Charles.

[EMAIL PROTECTED] wrote on 07/14/2008 02:53:02 AM:

> Hi,
> 
> I am trying to use the regex to get the tag value from:
> 
> 
<sip:[EMAIL PROTECTED]:5060>;tag=123.147.206.2105060+1+1220000+ac214fea
> 
> I get the tag value in $6 if I use following regex, but I don't need$1 
and $5:
> 
> <ereg regexp="sip:(.*);tag=(.*)" search_in="hdr" header="To:" 
> check_it="true" assign_to="1,5,6" />
> 
> 
> How can I get only the tag value (without "tag=") using just one 
variable?
> 
> Thanks,
> 
Atul-------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> Sipp-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sipp-users


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to