Skip to content

Instantly share code, notes, and snippets.

@aigor
Last active February 17, 2017 16:21
Show Gist options
  • Select an option

  • Save aigor/6fa8297e94304da0550c65ac0104bf3c to your computer and use it in GitHub Desktop.

Select an option

Save aigor/6fa8297e94304da0550c65ac0104bf3c to your computer and use it in GitHub Desktop.
RegExp for searching & showing placeholders of type ${}
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