Created
April 1, 2016 18:51
-
-
Save carloscarvallo/8046558737ece82d3547d61bd6cdb0af to your computer and use it in GitHub Desktop.
Verifies whether the expression exists
This file contains 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
function regex( str ) { | |
console.log(/EXISTS/.test(str)) | |
} | |
regex( process.argv[2] ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment