create correct regex expressions for parsing