completed regex for parsing