$n =~ s/^( ?)$a( ?)$/$1$b$2/i; [download]
In reply to Re: regexp help -- word boundaries by holli in thread regexp help -- word boundaries by water