how can i take only the letters that after the dot (.) in the word?
if i have the word: "Yes.No" i want that my string a will be equal to "No",
but that should work in every word, not just in Yes.No
IDC_Sharp
-2
Junior Poster
Recommended Answers
Jump to PostYou splits the string at the dots, put both parts in a stringarray and then take the last element of the string array
string test = "yes.no"; string [] stringArray = test.Split('.'); test = stringArray[1];
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.