I need to match a string of words such as "Miguel Tiago"
, but do not want strings that may contain numbers. For example I do not want strings such as "Miguel10 Tiago"
. Also all strings may contain unicode.
I can't simple do:
re.match(ur'^[a-zA-Z ]+',string,re.UNICODE)
because for such case words with unicode such as 'ç' won't be recognized.
How can I use the rule [\w ]+
and exclude the digits?