You need the s modifier, i.e. /.../s, so that '.' in your regular expression also matches \n
In reply to Re: regular expression by jethro in thread regular expression by cburger