Please could someone explain to me why this regex does not match anything, when it should:
preg_match('@<title>([^<].)</title>@',$meta,$match);
I'm trying to match everything between the <title>
and </title>
tags, bearing in mind that there could be more than one, so the regex must be ungreedy.