Me playing with writing simple regular expression engines