r"https?:// ([\w\-\.]+) "
I’m trying to extract Domain names from Url. Regex equation above is the solution for this exercise. Can someone please help me understand what is happening inside this capture group.
From my understanding of sets either one of the elements in set will be matched (either ‘\w’ or ‘-’ or ‘.’) but, how come using this solution is matching all 3 elements in this set.??