Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #12097
| Message-ID | <22171861.ikSu5bs1Z4@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2012-02-23 15:12 +0100 |
| Subject | Re: Replace all strings |
| Newsgroups | comp.lang.javascript |
| References | (1 earlier) <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 |
Followups directed to: comp.lang.javascript
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
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