When I have e.g. my $str ="ORIANA|LIGHT BLUE GOLD/SILVER LIGHT GREE|0|0|1|0|0|0|0|0|0"; $str =~ s#\b(\w+)\b#\L\u$1\E#gx; it gives me almost satisfactory: "Oriana|Light Blue Gold/Silver Llight Green|0|0|1|0|0|0|0|0|0"; .. except the first match which I want to remain ORIANA. Fero
|Regular expression to replace words in a string||8||47|
|Perl string filter||5||74|
|PHP/REGEX: Where file names do not have underscore with glob||8||48|
|Perl script to delete older files||6||73|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
11 Experts available now in Live!