In short, yes. Although people most often use
.icontains() with literal strings for matching, nonetheless, the operator actually uses a quote-enclosed regex pattern, i.e.
.contains("pattern"). Of course, a lieral string is a valid pattern.
You can use the pipe
| operator within a regex to simulate an OR join, but an AND is harder. As @eastgate notes, just put each pattern in a separate operator.
If using multiple
.contains() with an
& join, if there is a likely disparity in the rate of occurrence of the two patterns. Put the text for the less common one first, as the second test only matches the strings passing the first text, i.e. lessening the amount of overall checking. In most TBXs you’ll never notice the difference but it is a good habit to acquire for when/if you move to using large documents where it will help overall snippiness of operation.