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