Modify RegexMapper and add OnMapFailed event