pdf and txt supported, output file selected
Regex added to support dynamic word filtering