From: Oliver Andrich Date: 2005-12-07T07:47:34+09:00 Subject: Question concerning multiline regexps and best practice Hi, I am currently moving an application from Python to Ruby for a training purpose and to learn Ruby. Inside this application I am parsing text files delivered by news agencies. These follow more or less a specification developed by the IPTC consortium. But back to the question. :) At the momemt I use a concatenation of strings as an input for the Regexp, but I asked myself wether I can use a HERE document, as it would make things a lot clearer without all the these single and double quotes around strings. 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? Or may be there is an even better way to do it. I even think about writing a bunch of methods to parse all the stuff without a regex. Best regards, Oliver