\d+
was in response to your Q: **What's the right way for
listing numbers
with more than one digit? **
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>
yr 2nd Q: for that u would want to use MatchEvaluator
finction:
1.match a digit to be checked
2. pass it to MatchEvaluator(), which compares the value
with a
array(list) of the values from yr database and returns bool
flag (match
/no match) as a result
remember, that regex was born to match PATTERNS , not
VALUES.
alternatively, u'll have dynamically create an ugly regex
that would
list ALL possibilities: e.g.
^1$|^22$|^2006$
would match numbers: 1, 22, 2006
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regex googlegroups.com
To unsubscribe from this group, send email to
regex-unsubscribe googlegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---
|