<?php $your_string = "<p>Hi this is <<name>> and I am living in <<address>></p>"; echo preg_replace('~(<<)(.*?)(>>)~',"$$2",$your_string)."\n"; echo str_replace(array("<<",">>"),array("$",""),$your_string);
You have javascript disabled. You will not be able to edit any code.