Quote:
Originally Posted by bigb89
Code:
<?php @include("http://".$_SERVER['HTTP_HOST']."/linkingblogv.php"); ?>
|
If you trying to match (and replace) this string literal then you don't need to use regex at all.
Though you will still need to take care of quoting and var. interpolation.
Try:
Code:
perl -i.bak -pe '$_="yabba dabba doo\n" if $_ eq qq(<?php \@include("http://".\$_SERVER[\047HTTP_HOST\047]."/linkingblogv.php"); ?>\n)' file