I usually work with char protocols, so I have designed a package that
implements a structure of chains in wich every RegexCommand look if the
string match and then perform an action and return the message that should
be given to the next RegexCommand in the chain.
I think that this should be useful for many people, if you want to look that
stuff I'll publish it.