lint: use re.seach and don't count empty lines

re.match() checks for a match only at the beginning of the string, so now using re.search.

Removed \n from re to avoid counting empty lines
Removed \r from re since cr_regexp takes care of it