Am I missing emails again? I've not seen Taka's email in this thread.

On Mon, Mar 7, 2011 at 1:46 PM, gaz Heyes <[email protected]> wrote:

> On 6 March 2011 18:39, edvakf <[email protected]> wrote:
>
>> "a\
>> b\
>> c"
>>
>
Yeah I was afraid this (a "line continuation") would be suggested. The _big_
caveat here is that the escaped newlines are NOT part of the string. That's
why, if newlines are significant (and they usually are in the heredoc
sense), you have to prepend or suffix an escaped newline. So:

"a\n\
b";

or

"a\
\nb";

(Both result in the string "a\nb")

Gaz: linecontinuations in regular expresses are not something you should
rely on. Although I've seen some es-discuss chat about introducing them in
Harmony (can't find the specific email right now). I've forgotten what the
result was of that discussion, maybe somebody else knows.

- peter

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to