Screen Link:
My Code:
email_mentions = titles.str.contains(r"\be[-\s]?mails?\b", flags=re.I).sum()```
What I expected to happen:
What actually happened:
pattern = r"\be[-\s]?mails?\b"
email_mentions = titles.str.contains(pattern, flags=re.I).sum()
<!--My code perfectly works but I don't get why the solution code has another backward slash just after the bracket ([\-\]): -->