Nginx cookie map regex remove + character
B.R.
reallfqq-nginx at yahoo.fr
Mon Apr 3 08:12:04 UTC 2017
On Sat, Apr 1, 2017 at 1:57 PM, Francis Daly <francis at daoine.org> wrote:
> If you want to match "word character or plus", use something like [\w+].
>
Defining a pattern over a simple assertion is kinda strange. '[' & ']'
are useless here, since you are not matching several symbols.
Use (?<session_value>\w+) and you should be all set.
Btw, if you were to use '+', [\w+] and [\w]+ have different meaning: first
quantifier applies to '\w' only while latter applies to all the symbols in
the pattern.
---
*B. R.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20170403/edd5976c/attachment.html>
More information about the nginx
mailing list