serial + regex in qt/win