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

  • Home
  • SEARCH
  • 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 260951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:23:28+00:00 2026-05-11T22:23:28+00:00

I am processing my website and wanting to change some things on the pages.

  • 0

I am processing my website and wanting to change some things on the pages.

I am wanting to replace the following string:

in the
<SPAN class="Bold">
More...
</SPAN>
column to your right.

Some times is does not have the <span> tags :

in the
More...
column to your right.

I would like to replace this with “below”. I tried doing this with a simple replace() in python but because sometime the text does not have the <span> tag and is on multiple lines it does not seem to work. My only thought is using regular expressions but I am not up to speed with regex’s, could anyone lend a hand?

Thanks

Eef

  • 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-11T22:23:28+00:00Added an answer on May 11, 2026 at 10:23 pm

    Assuming you have the html text in the string “foo”, the code to do this in Python would be like:

    import re
    #re.DOTALL is used to make the . match all characters including newline
    regexp = re.compile('in the.*?More\.\.\..*?column to your right\.', re.DOTALL)
    re.sub(regexp, 'below', foo)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm processing some 3rd party HTML which is semi-structured marked-up text (bold, italics, etc).
I'm processing unavaliable pages in my custom PHP website. To do this I created
I'm developing some website with ASP.Net for uploading and processing some MS word docs.
I'm trying to integrate intuit payment processing with a website. Does this require QuickBooks?
String processing in C# and VB.NET is easy for me, but understanding how to
I'm the processing of redesigning a website that uses hover effect on a button
I have a Kentico CMS website that is processing static resources, such as png
I'm building a website for work, and one of the more important features is
I am working on an application (Symfony 1.4 / Doctrine) that has some pages
I'm trying to get credit card processing for a friends website. The processing will

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.