I have a line in which there can be any sentence, but somewhere in that line there will be a @ symbol followed by an attached word, like @username, which you see on some sites.
so maybe the string “hey how are you” or “@john hey how are you”.
IF there is the string "@" in the line that I want to pull out, which comes immediately after it in its own new line.
in this case, how can I pull "john" to another line to theoretically notify this person of his new message? I'm trying to play with string.contains or .replace, but I'm pretty newbie and hard.
this bit is in c # asp.net
source
share