I've been thinking about this as well. Perhaps we should just have a CBR action based on Regex. Or are you proposing we update the XPath DSL in the Drools-based CBR to have regex?
What do you think?
I guess if there are a lot of regular expression related functions, a new action could be created. However, from my understanding of reg exps, you should only need to perform the matches function against it, unless you want to build patterns from message content or similar.
I was simply thinking of updating the drools based CBR action to include another function for matching a reg exp against the value of a DOM node or attribute.