nginx正则表达式

1、^:匹配字符串的开始位置;

2、.*: .匹配任意字符,*匹配数量0到正无穷;

3、. 斜杠用来转义,.匹配.;

4、(jpg|gif|png|bmp)匹配jpg或gif或png或bmp

5、$匹配字符串的结束位置;

6、i不区分大小写

原文地址:https://www.cnblogs.com/timothy-lai/p/5992494.html