I am trying to do a simple find and replace. I have:
<?php $url = 'http://www.mywebsite.net/this-is-a-page.php'; ?>
as a variable on each page and I'm replacing it with:
<?php $url = curPageURL(); ?>
I had my find set up like this:
<?php $url =( .*); ?>
but that's clearly incorrect because it doesn't return any results when I hit find. Any help would be super appreciated.
Thanks!
You need to escape some characters.
Try this <\?php \$url =( .*); \?>
?
denotes 0 or 1 of the previous character.$
denotes end of line.Escaping them changes them to literal matches.