Re: Nginx cookie map regex remove + character

2017-04-03 Thread Francis Daly
On Mon, Apr 03, 2017 at 10:12:04AM +0200, B.R. via nginx wrote: > On Sat, Apr 1, 2017 at 1:57 PM, Francis Daly 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

Re: Nginx cookie map regex remove + character

2017-04-03 Thread B.R. via nginx
On Sat, Apr 1, 2017 at 1:57 PM, Francis Daly 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 (?\w+) and you should be all

Re: Nginx cookie map regex remove + character

2017-04-01 Thread Francis Daly
On Fri, Mar 24, 2017 at 05:18:23PM -0400, c0nw0nk wrote: Hi there, > The cookie name = a MD5 sum the full / complete value of the cookie seems to > cut of at a plus + symbol Your regex piece is (?[\w]{1,}+) which says to match one or more \w characters ({1,}), one or more times (+) \w is "wor

Nginx cookie map regex remove + character

2017-03-24 Thread c0nw0nk
So this is my map map $http_cookie $session_id_value { default ''; "~^.*[0-9a-f]{32}\=(?[\w]{1,}+).*$" $session_value; } The cookie name = a MD5 sum the full / complete value of the cookie seems to cut of at a plus + symbol What would the correct regex to be to ignore / remove + symbols from "s