For a Regular Expression with the start of line character '^' it is not detecting content in a doc, docx or pdf documents.