Use or in preg match instead in php code