Mohd Arif

Mohd Arif

  • NA
  • 345
  • 11.6k

How to Replace Last three slash from the url with comma(,)

Jan 18 2018 11:24 AM
I have a url
 
string url="http://www.xyz.com/forums/AddPost/NewPost/Hello";
 
I want to replace last three slash(/) from the url with comma(,).
 
I want url like this 
 
http://www.xyz.com/forums,AddPost,NewPost,Hello 
 
Please Solve my problam. 

Answers (1)