rkg has asked for the wisdom of the Perl Monks concerning the following question:
Thank youmy $a= ' I have SOME WORDS in full CAPS '; $a =~ s{\b([A-Z]{4,})\b/}{ucfirst(lc($1))}eg; print $a, "\n"; # wanted: I have Some Words in full Caps
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Quick regexp question
by liz (Monsignor) on Oct 05, 2003 at 13:55 UTC | |
by bart (Canon) on Oct 05, 2003 at 14:01 UTC | |
by liz (Monsignor) on Oct 05, 2003 at 16:00 UTC | |
by Abigail-II (Bishop) on Oct 05, 2003 at 22:01 UTC | |
|
Re: Quick regexp question
by arno (Scribe) on Oct 05, 2003 at 13:56 UTC | |
|
Re: Quick regexp question
by rkg (Hermit) on Oct 05, 2003 at 13:55 UTC | |
|
Re: Quick regexp question
by Cody Pendant (Prior) on Oct 05, 2003 at 23:31 UTC | |
by rkg (Hermit) on Oct 06, 2003 at 02:32 UTC | |
by Cody Pendant (Prior) on Oct 06, 2003 at 02:58 UTC |