I prepared a regular expresion in Python that searches for github webpage:
github = re.findall(
"https?:\/\/(?:www\.)?github\.com\/[A-Za-z0-9_-]+\/?",
text)
But now it searches for links that starts with https. How this could be modified, so the regex would search for strings that start either with https or just with www ?
Now my regex will find this:
https://github.com/helloman
as well as this:
https://www.github.com/helloman
but not this:
www.github.com/helloman
How it can be changed to accept all three options?