Warning: preg_match() [function.preg-match]: Unknown modifier '/' [duplicate]
preg_match('~"http://(.*)"~iU', $code, $matches);
Your issue was you need delimiters (I chose ~) to use with the pattern. See the preg_match() man page for more information.