Hello!
On Fri, Oct 25, 2013 at 2:00 AM, jerome lafon wrote:
> What is the most efficient way to define a location directive which match
> something like
>
> location = /[0-9a-zA-Z_-]{1,6} { content_by_lua_file ....}
>
> In other words an uri which matches a string from 1 to 6 characters with
> "-", "_", digits and letters.
>
> Or is it faster to check the string length within my LUA code which will
> generate the output by using a location directive like
> location / {content_by_lua_file...}
>
Both of these approaches are very efficient. Just use whatever you
like. And I don't think you can measure any difference here.
Best regards,
-agentzh