also send regexp for validation from outside