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..
cannot resolve spaces in regular expression
Moderator: General Moderators
-
bugthefixer
- Forum Contributor
- Posts: 118
- Joined: Mon Mar 22, 2004 2:35 am