DK
const QString str = QString::fromStdWString(&devint->dbcc_name[0]);Строки типа таких:
QRegularExpression regex("\\\\{2}\\w{3}");
QRegularExpressionMatch match = regex.match(str);
if (match.hasMatch())
{
QString matched = match.captured(0);
qDebug() << matched;
}
\\\\?\\HID#VID_C250&PID_3504&MI_00#8&7bf31c3&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
\\\\?\\USB#VID_C250&PID_3504#DEV_1337#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
На regex101 регулярка работает