in reply to Re^2: regex (between two words)
in thread regex (between two words)

All possible combinations, yes.

This solution *is* correct because it passes all the provided test cases. (hehehe)