Page 1 of 1

Regex - Select the first line on file

Posted: Thu Jul 14, 2016 12:32 pm
by me_suzy
hi. I am wondering, how to select the first line on file ?

This will select the last line ^(.*)$\z

But the first line?

Re: Regex - Select the first line on file

Posted: Fri Jul 29, 2016 12:22 pm
by DigitalVolcano
Does this do it:

Code: Select all

^(.*)
Options: Multi-line anchors:Off, Dot matches newline:Off