FYI - I was able to get what I need with this:

 

"sip:.*:([0-9]{4});transport.*([0-9]{1,3}\.){3}[0-9]{1,3}"
 


From: [email protected]
To: [email protected]
Date: Mon, 11 May 2009 17:48:12 -0500
Subject: [Sipp-users] Need help with ereg



For whatever reason, I'm having a difficult time trying to get the port value 
out of the following string using ereg:
 
<sip:[email protected]:4161;transport=Tcp;maddr=192.168.88.20;x-mss-call-id=1-4484%40192.168.81.176>
 
I want to grab both this entire line (excluding the '<' and '>'); I also want 
to grab the "4161" value at the end of the URI.  Can anyone help me out on 
figuring the regular exp to use?  
 
To sum up:
[$1]=sip:[email protected]:4161;transport=Tcp;maddr=192.168.88.20;x-mss-call-id=1-4484%40192.168.81.176
[$2]=4161
 
I really appreciate the help!  Normally I'm good with regexp's but today I just 
can't get things to work...
 
Thanks!



Hotmail® has ever-growing storage! Don’t worry about storage limits. Check it 
out.
_________________________________________________________________
Hotmail® has a new way to see what's up with your friends.
http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM_Tutorial_WhatsNew1_052009
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to