Filter lines of text

Keep or exclude the lines that contain a word, a value or a regular expression pattern.