fix warning detection

regular expressions....