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
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
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
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