Skip to content

Instantly share code, notes, and snippets.

@thekarel
Created November 8, 2013 09:54
Show Gist options
  • Save thekarel/7368801 to your computer and use it in GitHub Desktop.
Save thekarel/7368801 to your computer and use it in GitHub Desktop.
var re = new RegExp("regex","g");
// or
new RegExp(someObj.path).test(url)
// also
// this.appConfig.appPath.photo = 'photo/'
var re = new RegExp(this.appConfig.appPath.photo+'+.');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment