I got this to work on a single line without any additional plugins using the following regex:
"^[ ]*\"(.*?)\", line ([0-9]*)():(.*):"
This puts the error number inline error #20
.
My ultimate goal however is to have the actual error text. This is complicated by the fact that its a multi-line error message. Below is an example of this error message and the regex I tried with it but unsuccessfully. It puts a single space instead of the error message, but seems to work fine in regexpal.
"file_regex": "^[ ]*\"(.*?)\", line ([0-9]*)():.*:[ \r\n]+(.*)"
----------------------- start ------------------------------
"C:\Users\myself\my_view_my_code\MY_CODE\My_Libs\libraries\sub_libs\source\SomeSource.c", line 241: error #20:
identifier "bytes_written" is undefined
bytes_written = fwrite(pData, 1U, fsize, pFileWrite);
^
---------------------------------- end --------------------------------