demo_regex_meta1.py:
import re txt = "The rain in Spain" #Find all lower case characters alphabetically between "a" and "m": x = re.findall("[a-m]", txt) print(x)
C:\Users\My Name>python demo_regex_meta1.py
['h', 'e', 'a', 'i', 'i', 'a', 'i']