I have a string say "abcd/data/efgh". Now I need to replace text between two '/' character in this string with some other data.
for ex: I want "abcd/data/efgh" to be replaced with "abcd/newtext/efgh".
how can I do it with reg exp in javascript?
I have a string say "abcd/data/efgh". Now I need to replace text between two '/' character in this string with some other data.
for ex: I want "abcd/data/efgh" to be replaced with "abcd/newtext/efgh".
how can I do it with reg exp in javascript?