$ 0 0 You could also use a Replace() first, replacing all the CRLFs. You don't need a regex for something this simple.