Popular Posts
Convert relative url to absolute Uri baseUri = new Uri("http://www.domain.com/path/sample"); Uri absoluteUri = new Uri(baseUri, "../../other/path"); Uri... jQuery serialize form to json $.fn.serializeObject = function() {     var o = {};     var a = this.serializeArray();     $.each(a, function() {         if (o[this.name]) ... Dynamic load class & invoke method import java.io.FileInputStream; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.net.URL; import java.net.URLCla...
Stats
Regex.Replace by group value
string content = @"<div><img src=""loading.gif"" title=""loading""></div>";
content = System.Text.RegularExpressions.Regex.Replace(content, @"<img(.+?)>", delegate(System.Text.RegularExpressions.Match match)
{
    return string.Format(@"<img{0}/>", match.Groups[1].Value);
});