|
php preg_replace and perl regex matching
I'm having trouble with this one...
I need to replace everything from beginning of string up to the first occurrence of "= Gauge32: " OR "=STRING: " with "".
$output = shell_exec("./script.sh $propertyIP");
$pattern = 'the expression I can't seem to write';
$replace = '';
echo "<pre>" . preg_replace($pattern,$replace,$output) . "</pre>";
clues?
|