The problem is \w is equivalent to [A-Za-z0-9_] . Use \S (not-whitespace) instead. import re test = 'abc #yes👩 blabla #No💋 blabla #nah ...
確定! 回上一頁