hi, all i am making a job portal in which user upload multiple resumes which contain emails and phone numbers so there is any way to get email from a .docx file using php
Asked
Active
Viewed 74 times
1
-
3Please refer to http://stackoverflow.com/questions/19503653/how-to-extract-text-from-word-file-doc-docx-xlsx-pptx-php. – Jul 11 '16 at 11:07
1 Answers
1
First u must read the docx file.Please refer this Reading DOC file in php
then using
$emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
$match = preg_match($emailReg, $your_text);
the matches give you the desired output.