匹配模式和任何数字的正则表达式。
Regular expression to match pattern and any number.
我有一个 URL 模式可以是
my-domain.com/my-path/prod234728749.html
我想创建一个规则来匹配任何 URL 组合:
"/my-path/prod" + anycombination-of-number + ".html"
组合可以是长度未知的不同数字的组合。
\d+
或 [0-9]+
组合。完整的是 /my-path/prod[0-9]+\.html
或 /my-path/prod\d+\.html
我有一个 URL 模式可以是
my-domain.com/my-path/prod234728749.html
我想创建一个规则来匹配任何 URL 组合:
"/my-path/prod" + anycombination-of-number + ".html"
组合可以是长度未知的不同数字的组合。
\d+
或 [0-9]+
组合。完整的是 /my-path/prod[0-9]+\.html
或 /my-path/prod\d+\.html