s/([a-z]+)(?=(.?))/ uc($1) . (length($2) ? "_" : "") /ge; [download]
In reply to Re: global match except last one by ikegami in thread global match except last one by utku