News for hackers. Stuff that matters.
Re:ActiveRecord Vulnerability - Circumvention of attr_protected by getsat on Monday February 11, 2013 @01:41PM (#5202412)
More specifically, \A and \z are "start of string" and "end of string" respectively.

Why not \Z, you ask? \Z will match to the end of the string but ignore a trailing newline.

  irb(main):001:0> !!("hello\n" =~ /\Ahello\z/)
  => false
  irb(main):002:0> !!("hello\n" =~ /\Ahello\Z/)
  => true

There are no comments on this comment yet.