Sure thing ricksum... Regex isn't much fun when you're learning it, but it's a powerful tool to have in your arsenal, so now that you have good reason, imo, it's a good time to add a tool to the proverbial toolbox.
Sorry I don't have time to "just code" everything for everyone, but at the same time learning how to use "new tools" is definitely a long-term benefit. So in some ways it's actually better if I don't "just code" for other people who are trying/need to learn.
If you have some ideas of what you want to do and some regex patterns you think should work but don't, please, post in the PHP Forum [webmasterworld.com] and I'll try to help you out if I see one of your posts. But, if I can't, or miss it, there are plenty of people here who post regularly and are well qualified to give you a hand and help you work through any difficulties you're having in getting things going the way you want/need them to with regex pattern matching.