preg_match update according to bug #12