Regex validator

closes #16