<?php $s = '$name = "foo"; My name is'; $r = preg_replace('/(?<!\$)name/', 'VARIABLE', $s); var_dump($r);
You have javascript disabled. You will not be able to edit any code.