Save the regular expressions of tags.
Use forEach for marking invalid fields.