preg_match Solutions for Typical Tasks