Last active
December 1, 2017 10:15
-
-
Save franzramadhan/e3d64ae833d3cda2e321a9245cde8b96 to your computer and use it in GitHub Desktop.
Regex
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
The :g// command is what you're looking for — it runs a command on each line matching a pattern: | |
:g/Thing to find/ s/$/ Stuff to append/ |
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
get following string patterns | |
{{ STRING }} | |
regex: | |
\{\{\s([A-Za-z0-9_]*)(\s*\}\}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment