188
rated 0 times
[
193]
[
5]
/ answers: 1 / hits: 163411
/ 14 Years ago, fri, july 9, 2010, 12:00:00
var textTitle = "this is a test"
var result = textTitle.replace(' ', '%20');
But the replace functions stop at the first instance of the " " and I get the
Result: "this%20is a test"
Any ideas on where I'm going wrong I'm sure it's a simple fix.
More From » regex