title: matching long strings (mostly similar) with long strings
body: <p>I'm trying to find the best way to match and recognize different license texts within files. These are pretty long multiline strings (sometimes 2 letter-size pages) and if matching they should be mostly the same except for a few variables (Name, date, odd new lines, odd spaces).
  My question is, what's the best way to match long strings in even longer strings? Is the use of regular expressions justified for that (a huge regexp that would contain the whole license text with a few wildcards for the variable elements)? Or is there a string searching/matching algorithm that would be particularly adapted?</p>