I would expect \A to act the same as ^ when REG_NOTBOL
is used, but it doesn't.
Logged In: NO
This behaviour is documented: "The \A, \Z, and \z assertions differ from the traditional circumflex and dollar (described in the next section) in that they only ever match at the very start and end of the subject string, whatever options are set. Thus, they are independent of multiline mode. These three assertions are not affected by the PCRE_NOTBOL or PCRE_NOTEOL options, which affect only the behaviour of the circumflex and dollar metacharacters." (Comment by PH)