Modified RE to support multiple namespaces

Sometimes we need multiple namespaces like `['that.log','this.log','console','log','self']`
Added new test cases for PR #16
Merge pull request #16 from hemanth/master

Modified RE to support multiple namespaces