Last active
December 15, 2015 18:39
-
-
Save davidcelis/5305242 to your computer and use it in GitHub Desktop.
ruby.
This file contains 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
>> 'hi' =~ /(?<xx>.*)/ | |
# => 0 | |
>> xx | |
# NameError: undefined local variable or method `xx' for main:Object | |
>> /(?<xx>.*)/ =~ "hi" | |
# => 0 | |
>> xx | |
# => "hi" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment