Preliminary work on regular expression parser done. Need to add good interface to it.