s/\s+(.*)ba/$1B/g
In reply to Re^2: Work-around for variable length look-behind? by luis.roca in thread Work-around for variable length look-behind? by pat_mc