Modify match pattern