Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eclipse search - regex finding start/end of file with carriage return

I would like to remove any line breaks/carriage returns at the start and end of files but eclipse doesn't seem to recognize $$ or ^^ for end/start of file. Anyone know how to do a regex with eclipse search?


sof ^^ Start of File
eof $$ End of File
like image 553
Mike Henke Avatar asked Jul 26 '11 15:07

Mike Henke


1 Answers

You can use \A to represent the start of the file, and \Z to represent the end of the file.

like image 138
Samir Talwar Avatar answered Nov 08 '22 18:11

Samir Talwar