a regex event emitter