我试图用(https:\ / \ / test1.com \ /)replace脚本中的url(http:\ / \ / test.com \ /)。
有人可以给我的替代规则来识别和replace的url
手册中的例子不清楚吗?
<Location /> AddOutputFilterByType SUBSTITUTE text/html Substitute s/foo/bar/ni </Location>
i执行不区分大小写的匹配。
n默认情况下,模式被视为正则expression式。 使用n标志强制模式被视为一个固定的string。如果pattern(
foo)或者replace(bar)包含一个斜线/字符,那么应该使用一个可选的分隔符(例如| )