|Think about Loose Coupling|
RegExp Capitalization of Entryby bladx (Chaplain)
|on Jul 16, 2002 at 15:22 UTC||Need Help??|
bladx has asked for the
wisdom of the Perl Monks concerning the following question:
I have a question regarding regular expressions and using regexp's to filter Music Lists (group, album title).
What I am trying to do is this ... for example I have the music entry of: "red hot chili peppers" (group), "by the way" (album title).
Now what I am trying to figure out is how to convert an entry like that to: "Red Hot Chili Peppers" (group), "By the Way" (album title). This means that there needs to be a way to capitalize the names of every word in each entry except for the words such as: "and", "or", "the" etc.
Is there a way I can do this in Perl? Thanks for any help.