I have a string that looks like
string url = \"www.example.com/aaa/bbb.jpg\";
\"www.example.com/\" is 18 fixed in length. I want to get th
Try This:
int positionOfJPG=url.IndexOf(".jpg"); string newString = url.Substring(18, url.Length - positionOfJPG);