I'm working in C# and I have 2 textboxes. If the user enters text in the first box and presses a button the text copy's into text box 2. I've now made another text box and I'm wanting it to show all the strings that contain @ if the user has entered them.
For example,
User enters "Hi there @joey, i'm with @Kat and @Max"
Presses button
"Hi there @joey, i'm with @Kat and @Max" appears in textbox 2
and @joey @Kat @Max appear in text box 3.
Just not sure how i'd do the last part.
Any help thanks!
.............................................................................................
Okay, so I decided to go of and try to learn how to do this, I've got this so far
string s = inputBx.Text;
int i = s.IndexOf('@');
string f = s.Substring(i);
usernameBx.Text = (f);
This works however it prints all the words after the word with the @ symbol. So like if I was to enter "Hi there @joey what you doing with @kat" it would print @joey what you doing with @kat instead of just @joey and @kat.