Partial derivatives based extended regular expression submatcher