This code is significantly different than what I steered you toward, in channel. When having trouble with something, it helps to simplify things. Once it's working correctly, then to add in the bells and whistles. So to begin, just get rid of the color codes, especially because when you're pasting a regsubex into channel, it makes it hard to tell if these are blank parameters that the other person is supposed to trust contains color codes being perfectly preserved. I'm not sure if you're reverting back away from what we ended up having in channel, but when all else fails try making sure to not have stuff touching the \t and \n in a regsubex, because it doesn't work except for things like the regsubex's comma delimiter, or a parenthesis wrapping an identifier's parameters. And, the last version in channel had trouble because all those extra bells and whistles stuff were causing you to have mis-matched parenthesis