Number Ranges

Results 1 to 2 of 2

Thread: Number Ranges

  1. #1
    Join Date
    Dec 1969

    Default Number Ranges

    Can you use reg. expressions to check for a number range, such as does a field contain 0-100 ?

  2. #2
    Join Date
    Dec 1969

    Default Yep

    You can use the escape sequence d to stand for any number. Essentially a number between 0 and 100 is an option number 1 followed by an option digit followed by a required digit, no? Something like:<BR><BR>$[1]?d?d^<BR><BR>Note I added the $ and ^ to express that the pattern should contain nothing BUT the 1, option digit, and required digit. hth (BTW, the above is an untested regexp...)<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts