You'll find these page helpful
http://www.regular-expressions.info/reference.htmlhttp://php.net/manual/en/reference.pcre.pattern.modifiers.phpbut you'll want something like
preg_match('/ (adwards|utm_medium=adward
s) /i', $url);
Course the first one will match the second one.