Horje
remove tag anchor and inside tag from html raw text c# Code Example
remove tag anchor and inside tag from html raw text c#
using System;
using System.Text.RegularExpressions;

public class Test
{
        public static void Main()
        {
                String sample = "<a rel="nofollow" href=\"http://test.com\" rel=\"nofollow\">LoremIpsum.Net</a> is a small and simple static site that <a rel="nofollow" href=\"http://test123.com\" rel=\"nofollow\">provides</a> you with a decent sized passage without having to use a generator. The site also provides an all caps version of the text, as well as translations, and an <a rel="nofollow" href=\"http://test445.com\" rel=\"nofollow\">explanation</a> of what this famous.";

                String re = @"<a rel="nofollow" [^>]+>(.*?)<\/a>";
                Console.WriteLine(Regex.Replace(sample, re, "$1"));
        }
}




Csharp

Related
create file gz c# Code Example create file gz c# Code Example
c# check if list is empty Code Example c# check if list is empty Code Example
attributes C# reflection variable update site:stackoverflow.com Code Example attributes C# reflection variable update site:stackoverflow.com Code Example
can a dictionary type use get set c# Code Example can a dictionary type use get set c# Code Example
entity framework linq join 2 tables c# Code Example entity framework linq join 2 tables c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10