Possible Duplicate:
replace all occurrences in a string
I have this string:
"12-3-02"
And I would like to convert it to :
"12/3/02"
How would I do this? I 've tried :
.replace(/-/,"/")
But this only replaces the first one it finds. How do I replace all instances?