Skip to content

Instantly share code, notes, and snippets.

@simonthompson99
Last active January 13, 2021 12:32
Show Gist options
  • Save simonthompson99/0b2b10ff439f0b6e796efa9dee862fba to your computer and use it in GitHub Desktop.
Save simonthompson99/0b2b10ff439f0b6e796efa9dee862fba to your computer and use it in GitHub Desktop.
[VIM Search and Replace] Search and replace examples #vim #regex

%s/_\(\d\{9}\).png/, '\1',/g - Find an underscore followied by 9 digits and then .png and replace it with the 9-digit number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment