Take a look at the /s modifier. It allows . to also match \n.
In reply to Re: slurping (matching \n) by BrowserUk in thread slurping (matching \n) by GaijinPunch