- preg_match: documentation ( source)
<?php
$testString = "http://beta.homespotter.com/signature?utm_something=fridayTest3";
$utmName;
if (preg_match("/'?utm_'(.+)'='/", $testString, $matches)) {
echo "Match was found <br />";
echo $matches[0];
}
?>