Skip to content

Comment on Nginx 1.0.0 is outparent

Comments

I think that regex matches any string as well - ^ simply matches the start of a line and all strings have a start.

It might also be more performant because the regex engine doesn't consume the whole string before finding a match..

That is exactly right. See "Taxing Rewrites" on http://wiki.nginx.org/Pitfalls

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.