in reply to Re^2: regex compilation
in thread regex compilation

So I need to double all the backslashes.
Probably not. I think that you need to use qr//