trepxe-oes
Dec 4th 2007, 9:23 pm
Hello friends,
I want to use replace function in javascript but the client wants that a particular word should be replaced a specified number of times. For example...
In a particular page, I want to replace first 5 occurances of the word 'Telecom' to 'Telecommunications'. No matter how many times this word is used in the specified page.
Please help
I want to use replace function in javascript but the client wants that a particular word should be replaced a specified number of times. For example...
In a particular page, I want to replace first 5 occurances of the word 'Telecom' to 'Telecommunications'. No matter how many times this word is used in the specified page.
Please help