Created
April 3, 2017 12:18
-
-
Save j4zzcat/342d3415850f666f9b5e9e5b0cf941d8 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
r = %r{^/user/(?<user_id>.*)/login} | |
r.match '/user/1234/login' # => #<MatchData "/user/1234/login" user_id:"1234"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment