@([^:]*)
no that is not me swearing cos of all the emails, that's the regex.
again try the "info" app to see that most of the relevant uris are already cut up into variables for you.
Please refer your local book store about info about regexp.On Jun 23, 2008, at 4:57 AM, Sandeep Ammaladinna wrote:_______________________________________________Hi,Can anybody help me out with a regular expression (in the context of writing a dial plan) to extract the host part of a SIP URI.Suppose I have a sip uri like "sip:alice@example.com" or alice@10.0.16.20 what is the procedure to extract the host part?I know the procedure to extract the user part, ie, "$1@". But what is the procedure to extract the host part????????Please help me, I am stuck.Thanks and Regards,-Sandeep A
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org