Hello there,

I'm trying to write a simple regex for a map where only the first part of a
string should match. I went through the documentation, which unfortunately
didn't have much examples. 

Heres what I'm trying to achieve -

map $string $redirct_string{
     "~^abc*$" 1;
    }

I also tried to change the regex to a simple "abc*", but it didn't work.
Please let me know where am I going wrong.

Thank you for your answer.

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,295213,295213#msg-295213

_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-le...@nginx.org

Reply via email to