Updated regex pattern to base on http://fr2.php.net/manual/en/language.oop5.basic.php