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