Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string testString = "lorem ipsum alpha%charlie lorem ipsum";
- int index = testString.IndexOf("%");
- string newString = testString.Substring(0, index);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement