1

I need to match some names with regex in python, I am having troubles with non-ASCII uppercase letters:

Here an example list of names:

  1. Gonzalo
  2. Éder
  3. Porto

But using the classic ´A-Z´ does not work obviously, because Éder is ignored.

How can I match all the non ASCII uppercase letters?

In ruby one can with /[[:upper:]]/, more info here.

ciaoben
  • 3,138
  • 4
  • 27
  • 42

0 Answers0