Simple regular expressions engine