+ 1
What does this piece of code means in python
pattern = r"(\.[\w\.]+)"
2 Respuestas
+ 6
This is a regex pattern (regular expression). It will look for a dot \. followed by at least (+) one occurrence of either a letter or another dot [\w\.]. It's not really a python thing, regex can be used in many languages
+ 1
thanks Anna