This is the code I produced for a coding question prompted to me. It was developed and tested on Ubuntu 16.04 lts. It was also tested on Ubuntu 18.04 lts.
To compile, clone this git repo to a linux machine and simply run "cmake . && make".
To run, you can get the tool tip by running "./interview", and you can run the program by executing "./interview <infile> <regex/dirty words file> <outfile>"
Compiled successfully using:
Ubuntu 16.04 lts GCC 5.4.0 CMake 3.5.1 Make 4.1
Ubuntu 18.04 lts GCC 7.3.0 Cmake 3.10.2 Make 4.1