Quote:
Originally Posted by abefroman
but thats matching 4 digits, 5 digits, 6 digits, etc.
|
Of course it does. This is because one non-digit followed by 5 digits
is also one non-digit followed by 4 digits. If you were capturing the expression, you would notice that only the four digits you want will be captured.
Otherwise you want to revise your criteria. What it seems you want is one non-digit, followed by 4 digits, with the proviso that if you look ahead, there will be 0 or more non-digits. So
You don’t really need the look-ahead unless your are capturing, so this will work just as well in a simple truth test: