
November 4th, 2008, 10:58 AM
|
|
Contributing User
|
|
Join Date: Aug 2004
Posts: 64
 
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?
^([A-z 0-9]*)$
used in a php context
Code:
!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...
http://www.fileformat.info/tool/regex.htm
using ^([A-z 0-9]*)$
and the following strings
Code:
dfvfd45t54
srfdfcdf
^fdvdf
and that was doing the same. Am i missing out on something here?
Thanks in advance for any replies 
|