I am sending information via SCPI to power supplies. I created a GUI to display its responses. One of the responses comes is an error message that is a string and it has a character, a number, a comma and a couple of words in quotation marks. Ex: +0,"No Error" I need to extract just what is in the quotation marks, so what would be displayed is No Error. I was trying to split it and then truncate it from the quotation mark, however it is never as clean as I need and I can't cut the string by simply doing _mystring[4:-1] because some of the error codes being sent back are different lengths. ie. -400,"Query Error"
So doing _mystring[4:-1] would display ","Query Error"
help