Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: irt.org FAQ Knowledge Base Q771

Feedback on: irt.org FAQ Knowledge Base Q771

Sent by Eliza Zhou on May 02, 2000 at 11:20:10: - feedback #1166

Worth:
Very worth reading

Comments:
How do I replace a double quote with ^ in a string?


Sent by Brad Carter on March 12, 2001 at 08:59:30: - feedback #2478

Comments:
Sorry I couldnt figure out which one of the forms(whether to use the answer a question or not). So I hope you dont mind this being sent here.

This is in regards to the question found here: http://developer.irt.org/script/771.htm . I have a much shorter method for the find and replace.

It is simply to combine the split and join methods. Here is an example of how to do it

myText="Hello Every One"
myFinalText=myText.split("e").join("c")
alert(myFinalText)

This will alert "Hcllo cvcry onc"

This will work with whole strings and easily adapted into a soft-coded function.

Again I hope you dont mind.


©2018 Martin Webb