View Full Version : How do I remove a character from a string

06-16-2004, 03:21 PM
Hi all,
I am quite new to programming in javaScript and I am trying to find the code to remove a character/s from a string/s. As an example, if I initialise a variable called 'aString' and utilise 'window.prompt' to input 'Summer' or 'Have a nice day', what would be the code between 'window.prompt' and the last line 'document.write' to get the result result 'Smmr' or 'ae a ie a'?

06-16-2004, 03:41 PM
To accomplish this, you will need to use regular expressions. I'm sure that you can get some help as soon as this thread is moved to the javascript section and not the post a javascript section... I'll give you the benefit of the doubt and guess that you were reading in this forum and forgot which you were in when posting. In the future, make sure that you're in the right forum for your topic. :)

06-17-2004, 06:08 AM