Regex based, tiny event emitter