Validate all regexp

I needed to validate keypress AND length (with {m,n} in the regexp) so I add one condition.