Simple regular expressions engine.