Corrected 'top' string generation for regex, reduced useless messages in
tag extraction