$a =~ s{\b([A-Z]{4,})\b}{ucfirst(lc($1))}eg; [download]
In reply to Re: Quick regexp question by arno in thread Quick regexp question by rkg