I need to allow only alphanumeric characters (with upper case) from 0-25 characters and without a lazy all-repeated numerical value.
I have the first part: Regex.IsMatch (tmpResult, "^ [0-9A-Z] {0.25} $"); (which is easy)
111112 - matchAABD333434 - match55555555 - no match555 - no match
Can someone help me with this?
^(?!(.)\1*$)[0-9A-Z]{0,25}$
Additional (?!(.)\1*$)will reject any lines consisting of a repeating character.
(?!(.)\1*$)
(?!β¦) - , , β¦, (.)\1* .
(?!β¦)
β¦
(.)\1*
... , , true , , .
true , .
, , , .
Source: https://habr.com/ru/post/1771975/More articles:Browser-based strategy in Django / GAE. Model Suggestions? - google-app-engineAndroid Browser Versioning Event Continues Shooting - javascriptUsing Java generics in an interface to provide an implementation of a method with an implementation type as a parameter - javahow to find Wi-Fi location on iphone - iphoneRoR: POST to the page using raw form data. How? - ruby-on-railsdetect obsolete and incorrect function prototypes using autoconf - c ++Extract unique values ββfrom a list - vbaWhat does the formattingEnabled parameter do in the Binding constructor? - c #Troubleshoot iphone / ipad device due to memory - memory-managementAdd to NSMutableArray - arraysAll Articles