[Freeswitch-users] Regular expressions
Anthony Minessale
anthony.minessale at gmail.com
Mon Jun 23 07:09:36 PDT 2008
@([^:]*)
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.
On Mon, Jun 23, 2008 at 7:44 AM, Brian West <brian at freeswitch.org> wrote:
> Please refer your local book store about info about regexp.
> http://www.regular-expressions.info/
>
>
> 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 at example.com" or alice at 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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080623/74f7c374/attachment-0002.html
More information about the FreeSWITCH-users
mailing list