> when matching against something like "foo\nwiffle\nbarfoo\n"
> /(foo.*)$/ # matches the last line
/(foo[^\n]*)$/ # assuming perl 6 meaning of $, end of string
> /(foo.*)$/m # matches the first line
/(foo[^\n]*)$$/ # assuming perl 6 meaning of $$, end of line
or
/(foo.*?)$$/
> /(foo.*)$/s # matches all three lines
/(foo.*)$/
--
ralph
