Make regex work with atto_mediagallery as well