Iñaki Baz Castillo wrote:

> 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).

No argument.  You are absolutely correct.

I was just trying to shed light on what might compel someone to seek a 
regex.

-- 
Alex Balashov
Evariste Systems
Web    : http://www.evaristesys.com/
Tel    : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (678) 237-1775
_______________________________________________
Sip-implementors mailing list
Sip-implementors@lists.cs.columbia.edu
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to