How did it match london_bridge.gif?
london_bridge contains an underscore. Does alphanumeric(\w) also match underscore?
2 answers ( 0 marked as helpful)
Hey Viraj,
Thank you for reaching out!
Yes, in Python's regular expressions, the \w character class matches alphanumeric characters as well as the underscore (_). This means that \w will match any letter (A-Z, a-z), any digit (0-9), and the underscore.
Kind regards,
365 Hristina
Thank you Hristina