Is it possible to search for a specific line in a specific window/channel, and the ability to change that line by doing some operations on it like stripping the color codes etc.

I have looked around a bit but haven't found anything like it. If it's not possible in mirc, is there a dll that achieves this?

I could really use this to perfect the script I'm writing