I need a regular expression that will match the first letter of a song title without articles like “the”, “an”, “a”. I’m writing a custom import script for Mediatomb which uses javascript. I need to be able to put songs in alphabetical folders.
Example: “Panama.mp3” would be in folder “P”, “The Gambler.mp3” would be in folder “G”
Thanks to the answer above, this is what I came up with. Let me know if there’s any way to improve upon it.