++ retain strings matching certain criteria retain strings containing a certain substring retain items containing a certain substring retain items matching a certain criteria retain lines containing a certain substring retain lines containing a certain criteria keep items in a list that have or contain certain values Here's the code