The
Recorded data is
STATUS\r\n\r\n================================================================\r\n HDMI/HDBT Matrix-4x4 Status\r\n FW Version: 1.8\r\n\r\nPower\tIR\tKey\tAPM\tBeep\r\nON \tON \tON \tOFF\tOFF\r\n\r\nInputPort\tEdidIndex\tHDMIconnect\r\n01\t\tFORCE___00\tYes\r\n02\t\tFORCE___00\tYes\r\n03\t\tFORCE___00\tYes\r\n04\t\tFORCE___00\tNo\r\n\r\nOutputPort\tSelectInput\tHDMI/HDBTconnect EnableOutput\r\n01\t\t02\t\tYes/Yes\t\t No\r\n02\t\t02\t\tNo/Yes\t\t Yes\r\n03\t\t02\t\tNo/Yes\t\t Yes\r\n04\t\t04\t\tNo/No\t\t Yes\r\n================================================================\r\n\r\nMatrix-4x4> "
I am attempting to get the Enable output Status
n03\t\t02\t\tNo/Yes\t\t Yes
The last yes is the value of the variable I would like set
What would I have to set as my expect to try and achieve this so far anything I have tried has failed.
Any help would be greatly appreciated.
Thanks
(?s)^.*EnableOutput.*\r\n03[\t]+[^\n]*(?<status>Yes|No)\r\nThe(?s) commmand forced closed the send expect app.
I got it sorted with a lot longer and probably cumbersome approach but i got all the outputs statuses and inputs set to local variables.
Thanks again for the help