Posted on Sep 21, 2012 by
Happy Bird
Regular expressions and Ruby specifics
Comment #1
Posted on Sep 21, 2012 by Massive OxBy default, regular expressions are multi-lines in Ruby. For example, "uname\ntouch /tmp/0wned" matches /^uname$/
A lot of developers do this mistake and it's always a good idea to check for this for a project or in Rails (validates_format_of, ...)
Comment #2
Posted on Sep 21, 2012 by Helpful RhinoShould definitely add a note about \A \Z vs. ^ $
Comment #3
Posted on Sep 25, 2012 by Happy BirdHey guys, have a look I've added sections on Files and Regular Expressions (also documented NULL behaviour).
Status: Fixed
Labels:
Type-Enhancement
Priority-Medium