1

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

Vishnu Bhadoriya
  • 1,655
  • 1
  • 20
  • 28
  • 3
    Please 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 Answers1

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.

Community
  • 1
  • 1
Aswathy S
  • 729
  • 1
  • 12
  • 41