Fix regex in media extraction