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
  • 2,718
  • 2
  • 23
  • 37

0 Answers0