03-02-2011, 09:27 PM
Sure.
It allows any number that starts with 1-9 and has at least 4 other digits before the ".". Basically it is to all 5+ digit numbers that don't start with zero. Any 5+ digit number would be automatically greater than 8500. That had to be allowed since the second part of the script only verified 4 digit numbers between 8500-9999.
having to explain this, I noticed an issue. Here is the updated expression.
Had to allow 4 digit number than begin with 9 as automatic too.
Part 1: allow 5+ digit number that do not start with "0"
Part 2: Allow 4 digit number that start with an 8 and has second digit between 5 and 9
Part 3: Allow 4 digit number that starts with 9
It allows any number that starts with 1-9 and has at least 4 other digits before the ".". Basically it is to all 5+ digit numbers that don't start with zero. Any 5+ digit number would be automatically greater than 8500. That had to be allowed since the second part of the script only verified 4 digit numbers between 8500-9999.
having to explain this, I noticed an issue. Here is the updated expression.
Code:
(^[1-9]{1}\d{4,9}\.\d{2})|(^[8]{1}[5-9]{1}[0-9]{2}\.\d{2})|(^[9]{1}\d{3}\.\d{2})
Had to allow 4 digit number than begin with 9 as automatic too.
Part 1: allow 5+ digit number that do not start with "0"
Part 2: Allow 4 digit number that start with an 8 and has second digit between 5 and 9
Part 3: Allow 4 digit number that starts with 9