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

Popular posts from this blog

java - Cast from Object to List<String>: CastClassException -

How to set a border for android Imageview in Longpress? -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -