Fixed regex parsing from "data-validate" attribute