Created
February 21, 2011 17:50
-
-
Save reinh/837416 to your computer and use it in GitHub Desktop.
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
| sep = "'''" # some string delimiter that won't be found in the text | |
| string.gsub('"', "#{sep}").gsub("\\#{sep}", '\"').scan(/#{sep}(.+?)#{sep}/m) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment