Use the tool Filter and Sort > Select lines that match an expression or Text Manipulation > Search in textfiles (grep).
It is definitely possible to construct a "This OR That" and "This AND That" type of expression. Syntax help is on the tool form's help sections. Regular expressions can be tricky so you may need to test a few out to get the results you want. A google with "regular expressions" and/or "grep" will also bring up much more help if you want to review examples and online tools that help to construct/test these.
Thanks, Jen, Galaxy team