How is the AND/OR operator represented as in Regular Expressions?
I’m going to assume you want to build a the regex dynamically to contain other words than part1 and part2, and that you want order not to matter. If so you can use something like this: Positive matches: Negative matches: