Fix regex to work without boost