change validation of regexp