Regex filter

Filter lines based on a regular expression pattern.