Optimize regexes and fix font regex issue

I've optimized the regular expressions by using non-capturing groups, eg., `(?:a|b)` and I also added `^` and `$` regex tokens where appropriate. Also, there was an issue with one of the font regexes where instead of testing for `font/opentype` it tested for `application/font/opentype`.