Update regular expression to "match everything until", instead of "match everything except". This resolves issues with using asterisks inside metadata.
Merge pull request #973 from doctyper/feature/regex-fix

Update metadata regular expression parsing