#!/usr/bin/php -q

<?PHP

$contents=file_get_contents("file.txt");

preg_replace('^A-Za-z','',$contents);

file_put_contents("file.txt",$contents);

?>

you need to make sure you have the [] around your characters like this:

preg_replace('[^A-Za-z]','',$contents);

and you might need to extend that regex out some...do you have a data example.

--
thebigdog

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to