working version 1
can parse a file with regex only and display the number of warnings