Created
October 23, 2012 05:16
-
-
Save taterbase/3936828 to your computer and use it in GitHub Desktop.
Regex for matching interpolated string var
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
//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