I have strings of the form: ...format=<format_type>...
where legal format_type
s can be one of
image/{png,jpeg,tiff}
or {kmz,kml}
i want to match on any string with an illegal format type. For example
foo&bar&format=image/png
and foo&bar&format=kml&baz
should not match, but
foo&bar&format=image/svg
and foo&bar&format=application/pdf&baz
should.
I've tried .*format=(image\/)?.*(?!=(kml|kmz|png|jpeg|tiff)).*
but this doesnt work.