Created
October 7, 2011 20:49
-
-
Save miend/1271319 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
var = "google.com/randomtext/private-dw1938f3hf783h2g240o35o/basic" | |
r = /private-(.+)\//i | |
var.match(r)[1] | |
# should return: | |
# => "dw1938f3hf783h2g240o35o" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment