http://qs321.pair.com?node_id=348520


in reply to Quick question about pattern matching uppercase letters

Hi,

Some context code would be nice.

Anyway, this should do the trick

perl -p -e "s|\b([A-Z]+)\b|<i>\1</i>|g;" yourfile

---------------------------
Dr. Mark Ceulemans
Senior Consultant
BMC, Belgium