Monday 15 September 2014

regex - What is the difference between ~ and ~* in nginx location regexes -


In the document for Nginx, I learned that some place regexs

  Looks like ~ \ .. * /. * \. Php $ {  

looks anything else

  place ~ * .. (Txt | Log) $ {  

Is there any difference between these two regeses forms ( ~ and ~ * )

~ case-sensitive matches

~ * makes a case-insensitive match

You can also use! ~, Or! ~ * Means "does not match ..."

No comments:

Post a Comment