Fixed the regular expression of the Symfony version