Enhanced license matching using case-insensitive regexp patterns

Match license text more accurately using case-insensitive regular expressions. Enhance tests by comparing against real license text rather than a snippet.