I am trying to write a PHP script to organize the codes. You have to edit the 4MB+ txt file to add or remove codes, it's a pain. I was hoping to make life easier for myself and anyone who might want to upload existing code list, Add codes to database, compile a custom code list, and allow the user to save the custom file.

This project will be open source under a CC license!

I am working to import the existing code list at the moment. Here is what I have:

ardav, That works beautifully! I went ahead and finished the script with foreach loops and such, I'll post code. But I think I will attempt the same thing with Regex and see which one is less code, fast, etc...I'll have to run some tests. Thanks everyone for all the help!

Probably a bit mashed but the output isn't too far off. However, there are probably other 'types' to check. For example the '§N Joker Command' line ends up as an 'item' - which is probably wrong. The 'default' needs some work. :(

That's a really nice and easy way to do it for sure! That's sooo simple to read, I really like that. I'll mess with it here in a little bit. Thanks for the help! I am going to publish the tool at http://pec-code-manager.iluvjohn.com/