Closed niwak01 closed 2 years ago
Thanks for the suggestion!
Hm, I don't recall why I used text.lower()
up there and wonder if there was a specific reason, or whether it's really unnecessary as you point out 🤔.
Doing a quick test, it seems like they both produce the same results. But yeah, maybe there was a special edge case that I had in mind. Hmm...
Thank you very much for your response.
I think you might have intended to write as follows emoticons = re.findall('(?::|;|=)(?:-)?(?:)|(|d|p)', text.lower()) in order to find not only ':-P', but also ':-p)'
Oh this makes absolute sense, thanks a lot! Changed it!
I think it should be modified as the comment below .