[snip]
Picky, picky, picky.
[/snip]

Yep, I'm in one of those moods today :)... must be because it's Friday (I
like that excuse... think I'll use it again)

[snip]
Just for that, *you* can post the regex expression to do the substitution...
[/snip]

There has to be a downside to being a pedantic git... Whitespace has always
confused me slightly in regex's... Don't know why (they must be evil), but I
would try this:

String.replace(/(\r\n)/g, '\n');

Would that work? I seem to remember using it for something

Dan

-- 
Dan Parry
Senior Developer
Virtua Webtech Ltd
http://www.virtuawebtech.co.uk

-----Original Message-----
From: Bj [mailto:[EMAIL PROTECTED] 
Sent: 26 May 2006 13:46
To: [email protected]
Subject: Re: RE: [wdvltalk] JavaScript substring and linebreaks on IE &
Firefox bug..


> From: "Dan Parry"
> Subject: RE: [wdvltalk] JavaScript substring and
> linebreaks on IE & Firefox bug..
> 
> [snip]
> ...immediately followed by chr(12)...
> [/snip]
> 
> Should that not be chr(13)?

Picky, picky, picky.  OK yes chr(12) I think is 'New page' rather than 'New
line' (= cls on a screen and ff on a printer) and I meant chr(13), however
you missed the fact I got them the wrong way round and a DOS/Windows \n is
chr(13) followed by chr(10)!

Just for that, *you* can post the regex expression to do the substitution...
Bj

-----------------------------------------
Email sent from www.ntlworld.com
Virus-checked using McAfee(R) Software 
Visit www.ntlworld.com/security for more information


____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To:
mailto:[EMAIL PROTECTED] or
use the web interface
http://e-newsletters.internet.com/discussionlists.html/
       Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.7.0/346 - Release Date: 23/05/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.7.0/346 - Release Date: 23/05/2006
 


____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
       Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: unknown lmsubst tag argument: ''
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to