After hacking I need clean some code add to first line on too many files.
<?php $somevar = 'some code....... ?><?php
I need clean between and include <?php $somevar
and ?>
because latest <?php
can to be different such <html
and others.
If use this I need two steeps, because not clean delimiters. I need delete delimiters also.
sed -i.bak 's/\(<?php $drnrwsrl\).*\(?>\)/\1\2/' file.php
Result
<?php $drnrwsrl?><?php
Instead of what I want
<?php