in reply to Strange backslash in regexp behaviour

"A\\B" eq q{A\B}

But: \B Match except at word boundary

There are plenty of non-wordboundaries in your string, so it matches when there is no A required.