I'm trying to replace a string from a particular index to end
I have different string inputs with a link at the end I want to delete that link
for example I have :
Hello world ! this is my website link http://www.lo.com
I want to delete the link to get only :
Hello world ! this is my website link
Code :
Var message = "Hello world ! this is my website link http://www.lo.com";
How to do that in Javascript ?