I\'m trying to extract the first uppercase letter from a string.
import re # This works as expected x = re.match(\'[A-Z]{1}\', \'ABCDEF\').group() print(x) #