with regexp-based validator