following code might help you,
namespace ConsoleApplication24
{
using System;
using System.Linq;
using System.Text.RegularExpressions;
class Program
{
static void Main(string[] args)
{
string pattern = "<br/>";
string sentence = "India<br/> Malaysia<br/>Singapore<br/>";
string[] countries = Regex.Split(sentence, pattern);
string labelOutput =string.Empty;
labelOutput = string.Join(Environment.NewLine, countries.SkipWhile(country => string.IsNullOrEmpty(country)).Select(country=>country.Trim()));
Console.WriteLine(labelOutput);
}
}
}
The output of the above program is as below,
India
Malaysia
Singapore
Press any key to continue . . .
Please set the output to relevant label.
More information about,
Hope it helps :)