[HTTPS-Everywhere] The standard pattern for 'www.'

Whizz Mo https at whizzmo.com
Wed Dec 22 20:16:48 PST 2010


At the risk of bringing up space-time tradeoff, has anyone examined the
engine's regex vs naive pattern matching speed?

On Wed, Dec 22, 2010 at 6:41 PM, Drake, Brian <brian2 at drakefamily.tk> wrote:

> That sounds good to me. I use far more complex “regexy” patterns than that.
> That’s what regexp is for, isn’t it?
>
> On Wed, Dec 22, 2010 at 1041 (UTC-8), Osama Khalid <osamak at gnu.org> wrote:
>
>> Hello,
>>
>> Most rules use "(www\.)?" to match URLs with and without the 'www.'
>> prefix but few (~57 vs. 394) have two different patterns for each
>> case.
>>
>> I suggest changing the few patterns to the regexy way.
>>
>> Should I send a patch?
>>
>> --Osama Khalid[snip]
>>
>
> --
> Brian Drake
>
> Alternate (slightly less secure) e-mail: brian at drakefamily.tk
> Alternate (old) e-mail: brianriab at gmail.com
>
> Facebook profile: Profile ID 100001206642672<https://ssl.facebook.com/profile.php?id=100001206642672>
> Twitter username: BrianJDrake <https://twitter.com/BrianJDrake>
> Wikimedia project username: Brianjd<https://secure.wikimedia.org/wikipedia/meta/wiki/User:Brianjd>(been inactive for a while)
>
>
> _______________________________________________
> HTTPS-everywhere mailing list
> HTTPS-everywhere at mail1.eff.org
> https://mail1.eff.org/mailman/listinfo/https-everywhere
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.eff.org/pipermail/https-everywhere/attachments/20101222/c9fd0ed6/attachment.html>


More information about the HTTPS-everywhere mailing list