This has been touched on a few times on this forum (there is one expression made relating to this subject in the pinned topic at the top of this board). However, I don't believe anyone has come up with a regular expression that satisfies all the 'rules' of song titles.
According to the the Standard MIDI files, song titles should adhere to the following rules:
The first and last words of each title are always capitalized
All words in a title are capitalized as well, except:
2a. Articles (a, an, the)
2b. Conjunctions (and, or, but, nor)
2c. Prepositions <5 letters (at, by, for, from, in, into, of, off, on, onto, out, over, to, up, with)
2d. As (if followed by noun)
- Prepositions are capitalized if part of a two-word phrasal verb (i.e. "Come On," "Hold On," "Get Up," etc.)
Here is a partial list:
- The following words are supposed to be capitalized, though mistakenly are not always:
(Also, Be, If, Than, That, Thus, When)
Anyone brave enough to tackle this one? As I said, there was one in the regular expression thread that was pretty close, but it didn't adhere to these rules. This is supposed to be the standard, so if anyone can make this work, it will be grammatically correct.