Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #22631
| From | "Mel Smith" <med_cutout_syntel@aol.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Removing ' ' from strings ?? |
| Date | 2014-01-15 15:23 -0700 |
| Message-ID | <bjog40Fe7h5U1@mid.individual.net> (permalink) |
Hi:
I'm probably having a senior moment, but with IE8 as a test bed, I
cannot seem to replace ' ' with an ordinary space character.
e.g.,
Let's say my input text string is:
var mytext = " " + "Hello" + " " + "World" +
" "
Using IE8:
var newtext = mytext.replace(" "," ") ;
The above statement*works* in Chrome (i.e., it replaces ' ' with an
'ordinary' space character
But, in IE8 , these ' ' sequences are *not* replaced -- just
ignored ??
I need a 'kick-in-the-butt' please -- perhaps a real regex string that would
work in all cases ?
Thank you.
-Mel Smith
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
Removing ' ' from strings ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-15 15:23 -0700
Re: Removing ' ' from strings ?? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-01-15 23:35 +0100
Re: Removing ' ' from strings ?? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-01-15 23:44 +0000
Re: Removing ' ' from strings ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-15 17:07 -0700
Re: Removing ' ' from strings ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-16 09:08 -0700
Re: Removing ' ' from strings ?? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-01-16 16:18 +0000
Re: Removing ' ' from strings ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-16 10:23 -0700
Re: Removing ' ' from strings ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-16 10:35 -0700
Re: Removing ' ' from strings ?? Martin Honnen <mahotrash@yahoo.de> - 2014-01-16 18:58 +0100
Re: Removing ' ' from strings ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-16 11:05 -0700
Re: Removing ' ' from strings ?? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-01-16 18:01 +0000
Re: Removing ' ' from strings ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-16 11:10 -0700
Re: Removing ' ' from strings ?? Denis McMahon <denismfmcmahon@gmail.com> - 2014-01-16 19:17 +0000
Re: Removing ' ' from strings ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-16 13:37 -0700
csiph-web