I want to remove all text except the text within <>\'s from a textbox.
This is off the top of my head, but hopefully will steer you in the right direction :)
String email = "www.abc.com ";
String result = "";
int firstIndex = email.IndexOf('<');
int lastIndex = email.IndexOf('>');
if(lastIndex > firstIndex)
result = email.Substring(firstIndex + 1, lastIndex-firstIndex-1);