Now supporting regular expression and multiple event handlers