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... Convert pfx file to certificate file and private key file Use openssl Shared memory (file base) in Java import java.io.File; import java.io.RandomAccessFile; import java.nio.MappedByteBuffer; import java.nio.channels.FileChannel; import java.ni...
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);
});