Regular expression 0 - number range.

S

Scott Sauyet

I said:
The idea is to work recursively with ranges that have both a start and
an end, with a tree structure for, say 267 - 4301, of

    267-4301
    +- 267-999
    |  +- 267-299
    |  |  +- 267-269: 26[7-9]
    |  |  `- 270-299: 2[7-9]\d
    |  `- 300-999: [3-9]\d\d
    `- 1000-4301
       +- 1000-3999: [1-3]\d\d\d
       `- 4000-4301
          +- 4000-4299: 4[0-2]\d\d
          `- 4300-4301: 43[0-1]

That last line should read 4300-4301: 430[0-1].

-- Scott
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,075
Messages
2,570,562
Members
47,197
Latest member
NDTShavonn

Latest Threads

Top