hello
im biginner in javascript im asking if i can use [A-Za-z]\S*$ in
document.body.innerHTML = document.body.innerHTML.replace('Test','@');
if yes then how?
any help?
You can use a regular expression, yes.
document.body.innerHTML = document.body.innerHTML.replace( /^[A-Za-z]\S*$/ , '@');
tenfold;1288453 wrote:You can use a regular expression, yes. document.body.innerHTML = document.body.innerHTML.replace( /^[A-Za-z]\S*$/ , '@');
thanks