Skip to content

Instantly share code, notes, and snippets.

@nielk
Created September 18, 2013 20:27
Show Gist options
  • Save nielk/6615163 to your computer and use it in GitHub Desktop.
Save nielk/6615163 to your computer and use it in GitHub Desktop.
an example of regex with variable
var tmp = '.txt'
var ext = new RegExp("\\."+tmp+'$') // recherche extension de fichier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment