use regex to filter only ocr words from words files