I'm a bit concerned about using a regexp to solve this problem, especially since any number of sub-type parameters are possible in a valid MIME type.