Fix regex on multiple mime types 

Regex was only replacing the first * when having multiple mimetypes.
For example image/*,video/*