Toy code about regular expressions