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
| const regExp = new RegExp('__([A-Z][A-Za-z0-9]*)_{2,}', 'g'); | |
| const regExpNoGlobal = new RegExp('__([A-Z][A-Za-z0-9]*)_{2,}'); | |
| let bytecode = 'hello__CAT_hi__CAT____ahem_oKey__CAT_raccon__CAT__doggy'; | |
| let match = regExp.exec(bytecode); | |
| console.log("regExp with Global"); |
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
| #!/bin/bash | |
| # since this is a bash script, be sure to make this | |
| # executable using "sudo chmod 777" | |
| dir=$1 | |
| if [ -n "$dir" ]; then | |
| echo "Directory path must be first arg." | |
| echo " example: ./hashAllFiles.sh myFavoriteDirectory" |