Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #12097

Re: Replace all strings

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.chainon-marquant.org!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Content-Type text/plain; charset="ISO-8859-1"
Message-ID <22171861.ikSu5bs1Z4@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Organization PointedEars Software (PES)
Date Thu, 23 Feb 2012 15:12:51 +0100
User-Agent KNode/4.4.11
Content-Transfer-Encoding 7Bit
Subject Re: Replace all strings
Newsgroups comp.lang.javascript
References <f65a4c81-b021-4254-b8d3-725858e39f32@vh10g2000pbc.googlegroups.com> <ji3d9u$l9r$1@speranza.aioe.org> <0794f674-e437-4d95-87b3-f1580418f1fb@sk8g2000pbc.googlegroups.com> <ji3q58$nr6$1@speranza.aioe.org> <1938247.aqSPkdTlGX@PointedEars.de> <4c594bd3-157d-4d25-8fe0-b16af3e15249@f14g2000yqe.googlegroups.com>
Followup-To comp.lang.javascript
MIME-Version 1.0
Lines 34
NNTP-Posting-Date 23 Feb 2012 15:12:51 CET
NNTP-Posting-Host a371c4a5.newsspool1.arcor-online.net
X-Trace DXC=C_I7l72NiRi9kIfcjg:0fdic==]BZ:afn4Fo<]lROoRa<`=YMgDjhgbS6]dJ=QET;aDZm8W4\YJNlUFDj8T]K0?cDmniOZG;K0kCS5n?=VolZg
X-Complaints-To usenet-abuse@arcor.de
Xref x330-a1.tempe.blueboxinc.net comp.lang.javascript:12097

Followups directed to: comp.lang.javascript

Show key headers only | View raw


Captain Paralytic wrote:

> Thomas 'PointedEars' Lahn wrote:
>> J.R. wrote:
>> > On 22/02/2012 17:29, Archos wrote:
>> >> On Feb 22, 6:48 pm, "J.R."<groups_j...@yahoo.com.br>  wrote:
>> >>> var a = "a,b,c,d";
>> >>> a.replace(/,/g, '')
>> >> Yes, thanks. I hope that the use of regular expressions been right for
>> >> main browsers.
>> >
>> > The "searchValue" argument of the String.prototype.replace method can
>> > be a regular expression or not, according to the standards (ECMA-262
>> > Editions 3 and 5, section 15.5.4.11).
>>
>> More importantly, the RegExp initialiser (sic!) and constructor are
> 
> Why the (sic!)?

Because I try to use American English on the Net, but the ECMAScript 
Language Specification uses British English there (probably because it is 
published by Ecma International based in Geneva).

However, your question has made me look it up again.  The correct terms are 
"Regular Expression *Literal*" (ECMA-262 5.1 Ed., section 7.8.5), "Array 
Initialiser" (11.1.4) and "Object Initialiser" (11.1.5).  Thanks.


PointedEars
-- 
Sometimes, what you learn is wrong. If those wrong ideas are close to the 
root of the knowledge tree you build on a particular subject, pruning the 
bad branches can sometimes cause the whole tree to collapse.
  -- Mike Duffy in cljs, <news:Xns9FB6521286DB8invalidcom@94.75.214.39>

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Replace all strings Archos <raul.san@sent.com> - 2012-02-22 09:48 -0800
  Re: Replace all strings "J.R." <groups_jr-1@yahoo.com.br> - 2012-02-22 16:48 -0200
    Re: Replace all strings Archos <raul.san@sent.com> - 2012-02-22 11:29 -0800
      Re: Replace all strings "J.R." <groups_jr-1@yahoo.com.br> - 2012-02-22 20:27 -0200
        Re: Replace all strings Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-02-23 14:36 +0100
          Re: Replace all strings Captain Paralytic <paul_lautman@yahoo.com> - 2012-02-23 05:55 -0800
            Re: Replace all strings Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-02-23 15:12 +0100
    Re: Replace all strings "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-22 22:02 +0000
      Re: Replace all strings Gene Wirchenko <genew@ocis.net> - 2012-02-22 15:03 -0800

csiph-web