Re: Compare variable got from location with set of strings

2013-09-23 Thread Jonathan Matthews
On 23 September 2013 11:03, Vil Surkin wrote: > Hello, > > I have some location in configuration like this: > location ~ /([A-z]+_[A-z0-9]+) { > … do something (got $1) … > } > > And i need to compare this '$1' with a set of strings. How can i do this? Use a named capture in the location line an

Compare variable got from location with set of strings

2013-09-23 Thread Vil Surkin
Hello, I have some location in configuration like this: location ~ /([A-z]+_[A-z0-9]+) { … do something (got $1) … } And i need to compare this '$1' with a set of strings. How can i do this? Thanks!___ nginx mailing list nginx@nginx.org http://mailman