Ah, the jQuery way, of course :) 

Thanks Jake 

-----Original Message-----
From: Ⓙⓐⓚⓔ [mailto:[EMAIL PROTECTED] 
Sent: jeudi 8 mars 2007 0:48
To: [EMAIL PROTECTED]; jQuery Discussion.
Subject: Re: [jQuery] regular expressions

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
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ

-- 
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
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to