用sed替换许多特殊字符的字符串

时间:2017-04-05 12:17:27

标签: linux bash sed

我无法弄清楚如何替换这个字符串:

RewriteRule .*\/Custom\/([a-zA-Z0-9\-]+)\/expose_(short|long)\.php(.*)  https://111.111.11.11/markt3/Custom/expose.php?customer=$1&variant=$2$3 [QSA,NC,L]

用这个:

RewriteRule (.*)\/Custom\/([a-zA-Z0-9\-]+)\/expose_(short|long)\.perl $1/Custom/expose.perl?kunde=$2&variant=$3 [QSA,NC,L]

我可以用sed这样做吗?如果是 - >用sed怎么做? 所有特殊的charakter使它变得非常困难

由于

0 个答案:

没有答案