Support multiple substrings in regex queries.