Using boost::regex instead of QRexExp because it's completely broken.