A better regular expression is:
... for the case where the long line isn't the first line. If you don't know the (?m) flag search for PCRE flags.
Or alternative ignore the anchor altogether (but this may be less performant):
Up to you which you choose.