Say I have a string whose text is something like, "mohdibrahim.tasal". I want to extract "mohdibrahim" from this string.
I've tried this code:
string updateUser1 = user1.Trim();
Is this the correct approach, or is there another technique I should be using?