190
rated 0 times
[
195]
[
5]
/ answers: 1 / hits: 19798
/ 12 Years ago, mon, september 24, 2012, 12:00:00
I need to replace a string by range
Example:
string = this is a string;//I need to replace index 0 to 3 whith another string Ex.:that
result = that is a string;
but this need to be dinamically. Cant be replace a fixed word ...need be by range
I have tried
result = string.replaceAt(0, 'that');
but this replace only the first character and I want the first to third
More From » string