extracting emails from file using regular expressions in php on linux
hai all,
i am trying to get emails from external file.
i get file contants in a string called $contants.
i am using preg_match_all('/^[^0-9][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/',$contents, $matches);
but i am not getting emails.
please tell the actual patern for this.
thanks
Sri.
|