Test, validate and match regular expressions
This regex matches URLs that begin specifically with "https://youtube.com" or "https://www.youtube.com". It utilizes a word boundary at the end to prevent matching longer domains, making it highly effective for extracting or validating the root YouTube domain within multiline text.