fix regex for matching errors and warnings
A little change of regular expression - for better matching