1. Edit the file
  2. Type [cmd + F]
  3. Among the Options, tick Regular expressions
  4. Type [esc]
  5. (Type and) select in the file the Replace with lines of text
  6. Type [cmd + F] [cmd + X] [tab] [cmd + V] [esc]
  7. (Type and) select in the file the Find lines of text
  8. Type [cmd + F] [tab] [down arrow] [down arrow] [enter]