基本规则:
1、前缀为“EXACT:”表示完全匹配(大小写敏感)
2、无前缀表示基本搜索,表示搜索到字符串就匹配
3、前缀为“NOT:”表示发现就不匹配
4、前缀为“REGEX:”表示使用正则表达式匹配
5、前缀为“REGEX:(?insx)”表示匹配方式其中:
(i表示不区分大小写;
n表示指定的唯一有效的捕获是显式命名或编号的形式;
s表示单行模式;
x表示空格说明的;)
详细说明:
1、无前缀:(搜索到字符串就匹配,不区分大小写)
rules match
- 全部匹配 http://www.example.com/Path1/query=example
EXAMPLE http://www.example.com/Path1/query=example
path1/ http://www.example.com/Path1/query=example
query http://www.example.com/Path1/q=Query
2、not:发现就不匹配
rules match
NOT:EXAMPLE http://www.test.com/Path1/query=test
NOT:path1/ http://www.example.com/Path2/query=example
NOT:query http://www.example.com/Path1/q
3、Exact:精确匹配(区分大小写)
rules match
EXACT:http://www.example.com/path http://www.example.com/path
EXACT:http://www.example.com/path http://www.example.com/Path (不匹配- 大小写不一样)
EXACT:http://www.example.com/path