Fun fact: The RegEx doesn't do what ChatGPT tells you. While it matches the first to test-cases provided, it doesn't match the third one. As we know which subdomain we're searching we could write: https:\/\/www\.example\.com.*\/news\/.*2022.