SyntaxFix
Write A Post
Hire A Developer
Questions
Try This:
int positionOfJPG=url.IndexOf(".jpg"); string newString = url.Substring(18, url.Length - positionOfJPG);