For test.com use the following -
<ereg regexp="[a-z]*\.[a-z]*[^0-9>]" search_in="hdr" header="Contact"
occurence="1" assign_to="1" />
<ereg regexp="[a-z]*\.[a-z]*[^0-9>]" search_in="hdr" header="Contact"
occurence="2" assign_to="2" />

For 9995011463 use the following -
<ereg regexp="[0-9]\{2,10\}" search_in="hdr" header="Contact"
occurence="1" assign_to="3" />
<ereg regexp="[0-9]\{2,10\}" search_in="hdr" header="Contact"
occurence="2" assign_to="4" />

Dushyant P S Dhalia
Rancore Technologies
Gurgaon, India
Sumeet Bhardwaj wrote:

Hello All,

I need to extract *test.com* and *9995011463* from the below header using regular expression. Does anyone know how to extract these?


Contact: <sip:8885011...@test.com>;q=1.0,<sip:9995011...@test.com>;q=0.5

Please reply if anyone know this

Thanks

-Sumeet

DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.

------------------------------------------------------------------------

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
------------------------------------------------------------------------

_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

<<attachment: dushyant_dhalia.vcf>>

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to