String...) { appendInterpolation("(?:\(strings.joined(separator: "|")))") } } var regex = "I like \(oneOf: "cats", "dogs", "parrots")" var string = "I like dogs" string.range(of: regex, options: .regularExpression) != nil // true var regex = "I like (?:cats|dogs|parrots)" var string = "I like dogs" string.range(of: regex, options: .regularExpression) != nil // true to…