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 181537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:46:52+00:00 2026-05-11T14:46:52+00:00

I have a regular expression I’m using to remove html tags and now I’m

  • 0

I have a regular expression I’m using to remove html tags and now I’m wondering if there is any way to modify it so that it could also remove links beginning with http and ending with .stm or .gif?

This is the piece of code I’m using:

string BBCSplit = Regex.Replace(BBC, @'<(.|\n)*?>', string.Empty); 
  • 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. 2026-05-11T14:46:53+00:00Added an answer on May 11, 2026 at 2:46 pm

    The best way to figure out regular expressions is through example, trial and error.

    Put your html text in this site, along with your regexp and if it turns yellow, it’s matched.

    If you need a tutorial on how regexp works, I found this site to be very useful.

    The regexp you’ll want will be something like http:.*\.stm – which means ‘the characters http, followed by 0 or more characters (.*) followed by the characters .stm’.

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

Sidebar

Related Questions

I have this regular expression that extracts meta tags from HTML documents but it
I have a regular expression that runs through html tags and grabs values. I
I have a regular expression that looks through html content for some keywords that
I have regular expression (IX|IV|V?I{0,3}|M{1,4}|CM|CD|D?C{1,3}|XC|XL|L?X{1,3}) I use it to detect if there is any
I have this regular expression that removes html : sr.Text = Regex.Replace(sr.Text, @<[^>]*>, );
I have this Regular Expression that matches the following strings: <!-- 09-02-2009 ---> <!--
I have a regular expression ( \d{4}\w{3}(0[1-9]|[12][0-9]|3[01])([01][0-9]|2[0-3])([0-5][0-9]){2} ) that I need to validate the
I have a regular expression ^[a-zA-Z+#-.0-9]{1,5}$ which validates that the word contains alpha-numeric characters
I have a regular expression that throws ORA-12733, regular expression is too long. How
I have a regular expression that searches for the special characters. When I do

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.