Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on ActiveRecord Vulnerability - Circumvention of attr_protected. Parent comment
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.
Why not \Z, you ask? \Z will match to the end of the string but ignore a trailing newline.