I have a text box in which I enter the input as
"Two; abc@kk.com;"
string[] result = txt_to.Text.Split(';');
so what happens here is three lines. 1. two 2. abc@kk.com 3. "" (empty space) since a exists; after email, he thinks that as a string, I can discard the third line that it accepts. This happens when I enter the email address and semicolon and press the space bar, which causes an error. If it is just a space after the semicolon, then the split should discard it, how to do it
source
share