adds regex based lines matching