I am having trouble matching the space after content="Wordpress in the following regex
$metatag = '<meta name="generator" content="WordPress 4.8.2">';
$metaregex = '/<meta.*?content="Wordpress.(?<version>.*?)"/';
preg_match($metaregex, $metatag, $matches);
print_r($matches);