Construct a regular expression that matches strings containing either 'cat' or 'dog'.
The regular expression that matches strings containing either 'cat' or 'dog' is: ^(?=.*[cf])(cat|dog)$
^(?=.*?(cat)|^(?=.*?(dog))