java - Regex for validating numbers with certain length and beginning -
i validate value should have numbers , length should 11 , should not start 129.
is possible not efficient in regular expressions?
use negative lookahead. regex should ^(?!129)\d{11}$ turn java pattern; escape backslash.
Comments
Post a Comment