php-multi-pattern is a php class library of Multiple String-Pattern Matching , it uses the php-pcre.