Forum Moderators: open

Message Too Old, No Replies

Easy string question

         

orion_rus

2:47 pm on Mar 2, 2005 (gmt 0)

10+ Year Member



Hello world i have a following string:
"My country Russia is great"
how i can cut a Russia and stay only
"My country is great"?)
Thanks for helping me

CaseyRyan

3:24 pm on Mar 2, 2005 (gmt 0)

10+ Year Member



Here's an easy way to do that:

var myVar = "My country Russia is great";
myVar = myVar.replace("Russia ","");
document.write(myVar);

-=casey=-