[wp-hackers] .htaccess cleanup

Jonathan Leighton turnip at turnipspatch.com
Sun May 22 20:49:35 GMT 2005


Owen Winkler wrote:

> Jonathan Leighton wrote:
>
>> Well, I'm just assuming that saying (in code of course) "match any
>> character" is faster than saying "match this phrase, or that phrase, or
>> that phrase, or that phrase". But yeah, I wouldn't know either.
>>  
>>
> Not so much.  Matching something specific with a regex is *always*
> faster than maching anything because when the regex engine hits the
> end of the string that it matches, it backs out of the match to find
> what's next.
>
> <snip>

Thanks for the explanation. In which case, I think the
(page1|page2|page3) one should be implemented, unless anyone has a
reason why it'd be a bad idea? I filed a bug:
http://trac.wordpress.org/ticket/1399*

*Jon*
*

-- 
Jonathan Leighton aka. Turnip
http://turnipspatch.com/ | http://digital-proof.org/



More information about the wp-hackers mailing list