Last active
February 17, 2017 16:21
-
-
Save aigor/6fa8297e94304da0550c65ac0104bf3c to your computer and use it in GitHub Desktop.
RegExp for searching & showing placeholders of type ${}
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
| RegExp to find all Strings of type: ${<something including '#', '(', ')', '.'>}: (?<=\{)[\(\)#\._a-zA-Z0-9]*(?=\}) | |
| Show all matches of PATTERN: perl -nle 'print $& if m{PATTERN}' file.txt | sort | uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment