in reply to Re: Work-around for variable length look-behind?
in thread Work-around for variable length look-behind?

I was thinking of something similar but wasn't totally sure:

s/\s+(.*)ba/$1B/g