Skip to content

Instantly share code, notes, and snippets.

@ptgamr
Last active August 29, 2015 14:16
Show Gist options
  • Save ptgamr/47b6f7d46d0aeb7ac720 to your computer and use it in GitHub Desktop.
Save ptgamr/47b6f7d46d0aeb7ac720 to your computer and use it in GitHub Desktop.
Sublime regex

Replace line start with throw '...' with throw new Error(...)

Regex: (throw) ('.*');$

Replace: \1 new Error(\2)

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