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
In reply to Re: Quick question about pattern matching uppercase letters
by mce
in thread Quick question about pattern matching uppercase letters
by cranberry13
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |