I made an open source tool that does something like this using a modified version of the Levenshtein distance algorithm: https://github.com/nathanathan/fuzzyTemplateMatcher
Here's a demo you can play around with: http://nathanathan.com/fuzzyTemplateMatcher/