Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6162331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:38:08+00:00 2026-05-23T21:38:08+00:00

How to remove the anchor tag from a string, I have a large text

  • 0

How to remove the anchor tag from a string, I have a large text in that some word have anchor tag I want to remove that anchor tag and want to show plain word(with out anchor tag). My text is look like:

LoremIpsum.Net is a small and simple static site that
provides 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 explanation of what this famous.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T21:38:09+00:00Added an answer on May 23, 2026 at 9:38 pm

    If you want a very simple (and non-bullet proof) example, see below. I must still strongly advise that you find a “proper” html parser, however.

    using System;
    using System.Text.RegularExpressions;
    
    public class Test
    {
            public static void Main()
            {
                    String sample = "<a href=\"http://test.com\" rel=\"nofollow\">LoremIpsum.Net</a> is a small and simple static site that <a 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 href=\"http://test445.com\" rel=\"nofollow\">explanation</a> of what this famous.";
    
                    String re = @"<a [^>]+>(.*?)<\/a>";
                    Console.WriteLine(Regex.Replace(sample, re, "$1"));
            }
    }
    

    OUTPUT

    LoremIpsum.Net is a small and simple static site that provides 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 explanation of what this famous.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this hyperlink in anchor tag <a href=/index.php?var1=rule-power > Text </a> Now i
How would I remove the anchor tag but keep the anchor text in Bash?
I have an anchor tag in my .aspx page. I want to add a
I want that on click event to append/remove the anchor name #on to be
I have an anchor link that I want to disable once the user clicks
I have an anchor tag that has a jQuery click event linked to it.
I need to remove duplicate rows from a fairly large SQL Server table (i.e.
If I remove all the ' characters from a SQL query, is there some
I'm trying to extract an anchor tag and everything behind it from a url
I currently have a JS function that allows me to load partial content from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.