Subj : smthing with regular expressions To : netscape.public.mozilla.jseng From : eix ät lap ttu ee Date : Fri May 07 2004 04:09 pm Hi Hope someone can give me a reason for this. Need to control a value. And as the condition is quite easy regular expressions could be used. The value must be one of the following: 0, 1, 2, ..., 9, 10 When using Regular expressions I would write it intuitively ^(10)|[0-9]$ but when testing then 11 matches this expression just like 1.1 or any numeric constructions. Where is the trick? Haven't I wrote "string 10 or one number from 0 to 9"? could anybody give some ideas? Thanks in advance, Heiko .