2009/7/20 Alex Balashov <abalas...@evaristesys.com>:
>> You must use a SIP parser instead of a regula expression.
>
> Some people try to condense the requirements of parsing a complex grammar
> into a single expression, especially when only validation is required and
> not extraction of any tokens.

As I said, a regular expression for a SIP URI (strict regualr
expression) takes ~ 50 lines so it's really slow.
Instead, a parser is much faster and you could also use it just to
validate the SIP URI (without extracting the fields).


-- 
Iñaki Baz Castillo
<i...@aliax.net>

_______________________________________________
Sip-implementors mailing list
Sip-implementors@lists.cs.columbia.edu
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to