I'm struggling to create some kind of RegEx that can either look ahead or look behind.
Something ideal would be to match the a in both ab and ba, triggered by the presence of the b.
Obviously I could repeat the a, such as:
((?<=b)a)|a(?=b)
But can it be done without the repetition of the matching set?