Alternatively, you can specify re.U or re.UNICODE to treat all letters from all scripts as word characters.
The only limitation of using raw strings is that the delimiter you're using for the string must not appear in the regular expression, as raw strings do not offer a means to escape it.
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.