Get your own Python server Result Size: 625 x 565
x
 
import re
txt = "Åland"
#Find all ASCII matches:
print(re.findall("\w", txt, re.ASCII))
#Without the flag, the example would return all character:
print(re.findall("\w", txt))
#Same result using the shorthand re.A flag:
print(re.findall("\w", txt, re.A))
['l', 'a', 'n', 'd']
['Å', 'l', 'a', 'n', 'd']
['l', 'a', 'n', 'd']