在我们的项目中使用正则表达式来匹配包含字符串“/pdf/”的任何 url:
(.+)/pdf/.+
需要修改它,以便它不会匹配也包含“help”的网址
例子:
不应匹配:“/dealer/help/us/en/pdf/simple.pdf” 应匹配:“/dealer/us/en/pdf/simple.pdf”
regex regex-negation regex-lookarounds
regex ×1
regex-lookarounds ×1
regex-negation ×1