From: Edward Faulkner Date: 2005-12-07T08:17:18+09:00 Subject: Re: Question concerning multiline regexps and best practice --RIYY1s2vRbPFwWeW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 07, 2005 at 07:47:34AM +0900, Oliver Andrich wrote: >=20 > But sadly inside a HERE document, the \n at the end of a line are > used by the regexp. Is it possible to write a HERE document or > something like that with \n inside, but afterwards the \n the source > are skipped? The cleanest solution is to make a regular expression that can work regardless of the presence of newlines. You probably want multiline mode. I'd need to see your specific example. Or you could strip out the newlines with mystring.sub("\n",""). regards, Ed --RIYY1s2vRbPFwWeW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDlhvFnhUz11p9MSARAru5AJ9FOkVvmmVPzwG7pbw8ZXbuEcMb1gCfQLvE nzym58fOvVyZwOJLuMeBy1U= =3hQZ -----END PGP SIGNATURE----- --RIYY1s2vRbPFwWeW--