cannot resolve spaces in regular expression
Posted: Tue Apr 13, 2004 11:10 pm
my code for matching regular expression is
ereg("^[a-zA-Z\s]$",$str);
so far is i know '\s' is used for matching spaces..but my program does not matches spaces but it does match small and capital alphabets..
wat cud be the problem..
ereg("^[a-zA-Z\s]$",$str);
so far is i know '\s' is used for matching spaces..but my program does not matches spaces but it does match small and capital alphabets..
wat cud be the problem..