Eddie Corns wrote: > Just a small point - what does "in order" mean here? if it means that eg 1362 > is not valid then you're stuck because it's context sensitive and hence not > regular. I'm not seeing that. Any finite language is regular -- as a last resort you could list all ascending sequences of 7 or fewer digits (but perhaps I misunderstood the original poster's requirements).
Jim -- http://mail.python.org/mailman/listinfo/python-list