November 4th, 2008, 10:58 AM
Join Date: Aug 2004
Time spent in forums: 14 h 45 m 41 sec
Reputation Power: 9
Caret symbol accepted
Please tell me if I'm wrong, but shouldn't the following regex query identify only the letters a-z A-Z 0-9 and space?
used in a php context
!ereg("^([A-z 0-9]*)$", $string)
I want it to pick out when characters other than a-z, 0-9 and space's are used. However it is allowing the caret symbol through
Just so i know its not my php environment screwed up, i tried it here...
using ^([A-z 0-9]*)$
and the following strings
and that was doing the same. Am i missing out on something here?
Thanks in advance for any replies