Welcome! Log In Create A New Profile

Advanced

Re: Nginx cookie map regex remove + character

B.R. via nginx
April 03, 2017 11:06AM
On Sat, Apr 1, 2017 at 1:57 PM, Francis Daly <francis@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.*​
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx cookie map regex remove + character

c0nw0nk March 24, 2017 05:18PM

Re: Nginx cookie map regex remove + character

Francis Daly April 03, 2017 11:02AM

Re: Nginx cookie map regex remove + character

B.R. via nginx April 03, 2017 11:06AM

Re: Nginx cookie map regex remove + character

Francis Daly April 03, 2017 07:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 185
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready