made some progress with the regex parsing