How to extract email-id from a .docx file
posted 3 years ago
You can't treat a structured file format as if it were text. For DOC that may work by chance, but for DOCX it won't (because its contents are compressed). You need to use a library like Apache POI to get at the content.