private static string UrlRegex_Match( Match m )
{
if ( m.Groups[1].Success )
{
if ( m.Groups[2].Success )
return String.Format( "<a href=\"{0}\">{1}</a>", m.Groups[1].Value, m.Groups[2].Value );
}
else if ( m.Groups[2].Success )
{
return String.Format( "<a href=\"{0}\">{0}</a>", m.Groups[2].Value );
}
return m.Value;
}