Modified RE to support multiple namespaces

Sometimes we need multiple namespaces like `['that.log','this.log','console','log','self']`