Still, I think it's accurate to say that ^ means very nearly the same as your example: (?:\A|\n), so it's still quite surprising to me that yours is so much faster.
In reply to Re^4: Surprisingly poor regex performance
by sgifford
in thread Surprisingly poor regex performance
by sgifford
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |