Hi
I'm getting an error for the following:
I'm getting an error for the following:
1 2 3 4 |
import re pattern = re. compile (r "(?u)\w+" ) list = pattern.findall(ur "ñ" ) print ( list ) |
Error: list = pattern.findall(ur"ñ")
^
SyntaxError: invalid syntax
Can anybody suggest what the problem might be ?