Having following regex:

Code:
(?(?<=\AA)a|e)/g
and test string:

Code:
Aa
Ae
Be
it matches `a`(line #1), `e`(line #2), `e`(line #3).
I think it should match just `a`(line #1) because there are 3 lines but only ONE string - `\AA` matches `A` only once (on the first line of the string) and therefore applies `a` pattern which matches only `a` in the fist line.