Argh, so `^` and `$` do not work on the whole string only, but also internally on lines due to `\n` etc? Seems I have to do some more reading...