[PHP] Re: regular expressions question

2008-03-05 Thread Al
ctype_alpha ( string $text ) Adil Drissi wrote: Hi, Is there any way to limit the user to a set of characters for example say i want my user to enter any character between a and z (case insensitive). And if the user enters just one letter not belonging to [a-z], this will not be accepted.

[PHP] Re: regular expressions question

2008-03-04 Thread Shawn McKenzie
Adil Drissi wrote: > Hi, > > Is there any way to limit the user to a set of characters for example say i > want my user to enter any character between a and z (case insensitive). And > if the user enters just one letter not belonging to [a-z], this will not be > accepted. > > I tried eregi('[