using System.Text.RegularExpressions;
public static void Main()
var linkParser = new Regex(@"\b(?:https?://|www\.)\S+\b", RegexOptions.Compiled | RegexOptions.IgnoreCase);
foreach (Match m in linkParser.Matches("http://ahaliagroup.com/ahm/ http://ahaliagroup.com/ahm/one http://ahaliagroup.com/ahm/two http://ahaliagroup.com/hhh/ http://ahaliagroup.com/abv"))
Console.WriteLine(m.Value);