Help me please..
Why this code does not works :
while this code works :Code:var pattern = new RegExp("\s\[x\]$"); var gototext = document.getElementById(index).text.replace(pattern,"");
I test it in firefox..Code:var gototext = document.getElementById(index).text.replace(/\s\[x\]$/,"");
Pattern that i need is : [x] in the end of string.
Thanks for any help..


Reply With Quote

Bookmarks