Skip to content

Instantly share code, notes, and snippets.

@taterbase
Created October 23, 2012 05:16
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taterbase/3936828 to your computer and use it in GitHub Desktop.
Save taterbase/3936828 to your computer and use it in GitHub Desktop.
Regex for matching interpolated string var
//Finds all instances of #{} style interpolation like #{variable}
string.match(/#{[^}\r\n]*}/g);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment