匹配规则详解
匹配规则详解
包含
https://abc.com/lp
https://abc.com/company
https://abc.com/company/contact不包含
输入字段中有多个内容的情况
前向匹配
后向匹配
完全匹配
正则表达式
正则表达式的语法
正则表达式常用组合
正则表达式验证工具
最后更新于
https://abc.com/company/login
https://abc.com/company/checkout
https://abc.com/company/campaign1
https://abc.com/company/login/checkout/campaign1https://www.example.com/checkout.cgi?page=1&id=9982251615 https://www.example.com/checkout.cgi?page=1 https://www.example.com/checkout.cgi?pagehttp://www.example.com/s/test/index.html http://www.123.com/s/test/index.htmlhttp://www.example.com/s/test/index.html?wore=xxx正则表达式:
^https:\/\/www.ptmind.com($|\/$|\/\?.*)
包含的URL:
https://www.ptmind.com
https://www.ptmind.com/
https://www.ptmind.com/?WT.mc_id=xxxx
不包含的URL:
https://www.ptmind.com/abc正则表达式:
^(http|https):\/\/(sh|bj|tj).ptmind.com
包含的URL:
http://sh.ptmind.com
http://bj.ptmind.com/abc
http://tj.ptmind.com
https://sh.ptmind.com
https://bj.ptmind.com/?WT.mc_id=xxxx
https://tj.ptmind.com
不包含的URL:
https://www.ptmind.com正则表达式:
^http:\/\/ptmind\.com\/price.*$
包含的URL:
http://ptmind.com/price/page
http://ptmind.com/price?sid=23fwe3r2&vid=345666
http://ptmind.com/price#top
http://ptmind.com/price
不包含的URL: ー正则表达式:
^(http|https):\/\/[a-z0-9]*[.]*ptmind.com\/service\/mng_units\/lp03$
包含的URL:
http://www.ptmind.com/service/mng_units/lp03
https://www.ptmind.com/service/mng_units/lp03
http://ptmind.com/service/mng_units/lp03
http://a123.ptmind.com/service/mng_units/lp03
https://ptmind.com/service/mng_units/lp03
不包含的URL:ー正则表达式:
^http:\/\/ptmind.com\/detail\/id=6984([6][1-9][0-9]|[6][0][4-9]|[7][0-7][0-9]|[7][8][0-3])$
包含的URL:
http://ptmind.com/detail/id=6984604
http://ptmind.com/detail/id=6984783
不包含的URL:
http://ptmind.com/detail/id=6984784
http://ptmind.com/detail/id=6984603