Parsing media queries with a regular expression.