I am currently hiding multiple variables from my string using the following method:
$result = preg_replace(\'/\\[img\\](.*)\\[\\/img\\]/im\', \'REPLACED\', $q