bug 893: changed preg_match