Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > remove # sign from javascript

Reply
Thread Tools

remove # sign from javascript

 
 
oliver
Guest
Posts: n/a
 
      03-12-2007
why is this not working?


var testing ="#tesing something # something";
testing = testing.replace ("/\#/g", "");
alert (testing);

 
Reply With Quote
 
 
 
 
oliver
Guest
Posts: n/a
 
      03-12-2007
On Mar 12, 4:13 pm, "oliver" <(E-Mail Removed)> wrote:
> why is this not working?
>
> var testing ="#tesing something # something";
> testing = testing.replace ("/\#/g", "");
> alert (testing);


I want it to display -------- "testing something something"

 
Reply With Quote
 
 
 
 
ASM
Guest
Posts: n/a
 
      03-12-2007
oliver a écrit :
> why is this not working?


because

> var testing ="#tesing something # something";
> testing = testing.replace ("/\#/g", "");


testing = testing.replace (/\#/g, "");

> alert (testing);


--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
 
Reply With Quote
 
oliver
Guest
Posts: n/a
 
      03-12-2007
Thanks Stephane !!!!!!!!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
$ sign to gb pound sign PWB Computer Support 6 02-19-2007 03:06 AM
Automatic sign-up and sign-in across different domains without cookies? Jimmy ASP .Net 1 11-21-2006 04:41 PM
Automatic sign-up and sign-in between different domains without cookies? Jimmy Javascript 3 11-20-2006 01:28 PM
using regex to remove $ sign Kun Python 4 04-11-2006 12:00 PM
J sign instead of ? sign Harold Potter esq. Computer Support 5 04-16-2005 02:19 PM



Advertisments