I have the following regex:
$string = 'font-size:12em;';
$pattern = '@:[A-Za-z0-9.]+;@i';
preg_match($pattern, $string, $matches);
$matches returns:
Array ( [0] => :12em; )
However, why is the : and ; returned? How can I get it to not return those colons and only return the CSS value 12em?