Outside square brackets, it [caret] matches the beginning of the string or immediately after a newline.
By default, ^ (caret) outside a character class matches only at the beginning of a string, exactly as \A does. Caret (outside a character class) also matches immediately after an embedded newline if the /m modifier is asserted. See Modifiers in perlre.
Give a man a fish: <%-{-{-{-<
In reply to Re^2: Question regarding a regex
by AnomalousMonk
in thread Question regarding a regex
by CrashBlossom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |