1 command , 2 replaces var newString = oldString.replace(/X/,"-").replace(/Y/,"")
On 3/7/07, Alexandre Plennevaux <[EMAIL PROTECTED]> wrote: > > > hello! > > I'm experimenting with regular expressions, and i would like to replace in a > string some special characters by a "-" minus sign, and others by just > removing it. > Do i need ot make two regex.replace(), or is it possible to have both in one > command? > > thank you very much for your time! > > Alexandre > > > > > > -- > Ce message Envoi est certifié sans virus connu. > Analyse effectuée par AVG. > Version: 7.5.447 / Base de données virus: 268.18.7/712 - Date: 6/03/2007 > 15:42 > > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ > > -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
