Alex Balashov wrote:
> IƱaki Baz Castillo wrote:
>
>> 2009/7/20 Alex Balashov :
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.
Thank you guys. I was thinking, what would SipParser implementation do
and hence the question.
regards
sankar
___
Sip-implementors mailing list
Sip-implementors@lists.cs.columbia.edu
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors