I have to validate that an input is just digits and its value is not ‘blacklisted’.
The expression I made is the following:
(?=[0-9]{3})(?=(?!^(111)|^(222)|^(333)|^(123)|^(321)\b)\b\w+)
I’ve tested it on a regex validator and works perfectly!
BUT because of framework limitations my regex is surrounded by and additional ^…& delimiters making it match with any input.
Im trying to came up with a new regex that works when surrounded by the delimiters, but Im having trouble figuring it out.
Does somebody have any idea on how to achieve this?
What about using