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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:08:17+00:00 2026-05-26T18:08:17+00:00

The text is: <div class=left right>Lorem Ipsum is simply dummy text of the printing

  • 0

The text is:

<div class="left right">Lorem Ipsum is simply dummy text of the printing and</div> typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scramble'd it to make-shift type <a href="google.com">specimen book</a> and something [tag]else[/tag].

Essentially what I’m trying to do is extract all of the words above while abiding by these rules:

  1. word can contain dash and apostrophe (scramble’d and make-shift above)
  2. word cannot be within a link tag
  3. word cannot be within a block tag – [tag]
  4. word cannot be part of a tag name or html (class in class=”, div, a, tag etc)

My initial thought is to remove tags and content of those tags I don’t need like a and such. Even then, however, I am finding it hard to say match everything in between the div above, but not match the word ‘div’ or ‘class’ or ‘left right’.

Appreciate any help. I currently have:

\s?[a-zA-Z0-9\'\-]+\s?

Which is shameful, I know.

  • 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-26T18:08:18+00:00Added an answer on May 26, 2026 at 6:08 pm

    This will work with the .NET regex engine, but that’s one of the few that support repetition in a negative look-behind.

    (?<!<[^>]*)(?<!<a[^<]*)(?<!\[[^\]]*)(?<!\[tag[^[]*)\w[^\s<[]*
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the the following HTML: <div class=outf> <h3 class=left>Text</h3> <h3 class=right>more text</h3> <p><h3
<div class=twtr-tweet-text> <p>lorem ipsum <em>date 19th nov</em></p> </div> <div class=twtr-tweet-text> <p>lorem ipsum <em>date 18th
The left and the right side has much text but can not be scrolled
<div class = a> <div class = a b> text </div> </div> <script> alert($(.a).html());
I have a < div id=thisdiv class=class1 class2 class3 class4 class5> text < /div>
i have div take css class .headbg01 { background-image: url(../images/header_background01.jpg); border-left: #cccccc 1px solid;
I have the following css class: .CtractLabel { font-weight:bold; padding: 2px; text-align:left; /* width:120px;
i have this situation <div class=sub_project> <div class=sbone brown_gradient optzeci>Description</div> <div class=sbtwo optzecitwo> Lorem
Hi have an image floated left and then paragraphs of text to the right
i need to add some text DIV's on each slide of a Nivoslider. I

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.