add regexp support to `on` argument [#79]