Created
          September 18, 2013 20:27 
        
      - 
      
- 
        Save nielk/6615163 to your computer and use it in GitHub Desktop. 
    an example of regex with variable
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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