It uses a RegEx to split the name up into its parts. If you don't know Regex, let me know and I'll break it down for you. Or if you're really adventurous, you cold do some Googling and see what you can figure out. Search for "regex" and go from there. Learning Regex is extremely valuable, if not head-scratching.
Then we just re-assemble the parts.
How were you envisioning using this? Select a file or files and execute the macro to rename it/them?
Basically I detect when the voice recorder is plugged in via USB. I find the latest file,copy it over to the mac, rename it and then open it in Adobe Audition for some simple editing.