Move inline fields en masse to the first line of a file

After a couple of hours of regex nowhere-near misses, happiness turns out to be:

  1. Listen to @Jopp
  2. Leave the notes with inline fields
  3. There is no step 3

Thanks to Jopp and holroy.

EDIT: For anyone else with a similar issue, this post at least got the first line:

^(?<![\s\S\r]).*