Mohd Arif

Mohd Arif

  • 1.3k
  • 357
  • 44.1k

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)