Number of numbers without Regex symbols
-
For verification, the regular expression shall not pass more than 6 digits
^(?!.*[0-9|\s]{6})(.*)$
No.
123456 12345 6
But why not?
12345aa6
-
This is a regular expression that passes a line containing 5 and less figures.
%^(?!(?:.*?\d){6})(.+)$%u
Example https://regex101.com/r/aP8yZ8/1