I'm writing some codes on php. Now I want to grap words which include only alphabetic and numeric character. But I can't. I am writing my codes here. In actualy I found this regex in this site ([Allow only [a-z][A-Z][0-9] in string using PHP](https://stackoverflow.com/questions/2896450/allow-only-a-za-z0-9-in-string-using-php)). 

```
$fp = fopen('C:\wamp\www\curl\5510.doc','w');
fwrite($fp, $data); 
fclose($fp);
$file = doc2text('C:\wamp\www\curl\5510.doc');
@preg_match_all("/^[a-zA-Z0-9]+$/", file_get_contents($file), $fileOnlyAlphabetic);
print_r($fileOnlyAlphabetic);

```

And result is here

```
Array ( [0] => Array ( ) [1] => Array ( ) )

```

Please help me ...