added regexp validation support