I have textbox in c#, contains two or three strings with white spaces. i want to store those strings seperately.please, suggest me any code. thanx.
Firstly use this name space
using System.Text.RegularExpressions;
in your code
string Message = "hi i am fine"; string []Record=Regex.Split(Message.Trim(), " ");
Output is an array. I hope it works.