What am I doing wrong?
I am searching the matchs in a url, for example
import re
pattern = 'github'
str = 'https//github.com'
x = re.match(pattern, str)
print(x)
# prints None
However, I do the same in javascript:
console.log('https://github.com'.match(/github/))
// prints ["github", index: 8, input: "https://github.com", groups: undefined]
Why do not python see the match?