```
if (preg_match ('/[^a-zA-Z0-9]/i', $getname)) {

```

i use this preg\_match pattern to check if a string in php contains other charachters than `a-zA-Z0-9`. i want to add to the pattern the space...i use '`/[^a-zA-Z0-9 ]/i'` but is not working ... how should i do it? 

i want to allow spaces including `a-zA-Z0-9`