How do I write a regular expression to match two given strings, at any position in the string?
For example, if I am searching for cat
and mat
, it should match:
The cat slept on the mat in front of the fire.
At 5:00 pm, I found the cat scratching the wool off the mat.
No matter what precedes these strings.