RailsNme

Tuesday, March 1, 2011

Three ways of declare a regex operator in Ruby


/mm\/dd/ # => /mm\/dd/
Regexp.new("mm/dd") # => /mm\/dd/
%r{mm/dd} # => /mm\/dd/
Posted by Agoglife at 12:57 PM 0 comments
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2011 (9)
    • ►  October (1)
    • ►  June (2)
    • ►  April (1)
    • ▼  March (1)
      • Three ways of declare a regex operator in Ruby
    • ►  February (4)

Ruby On Rails Tutorial - Michael Hartl

Please take a look at the amazing tutorial for Ruby on Rails by Michael Hartl
Awesome Inc. theme. Theme images by Jason Morrow. Powered by Blogger.