In the following challenge:
The regular expression is provided in the question:
import re s = 'A message from firstname.lastname@example.org to email@example.com about meeting @2PM' lst = re.findall('\\S+@\\S+', s) print(lst)
However, it says it will match the following:
The issue is that, shouldn’t this not work?
\\ should escape the backslash. So it should be checking a back slash, followed by one or more Capital S, a @ sign, a backslash, and then one or more Capital S.