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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:41:11+00:00 2026-05-27T05:41:11+00:00

I want to select every word except the word: ‘Lorem’. I have tried: ^((?!Lorem).*)$

  • 0

I want to select every word except the word: ‘Lorem’.

I have tried:

^((?!Lorem).*)$ //nothing is selected.
^((?!test).*)$ //entire paragraph is selected.

Text:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ut est quis felis volutpat pretium in et libero. Curabitur vulputate justo a tellus scelerisque viverra. Morbi ac leo nec dui feugiat imperdiet. Nam lacus augue, scelerisque at condimentum et, accumsan non nulla. Sed mi enim, iaculis ut placerat vitae, ullamcorper ac turpis. Phasellus erat velit, tristique eget cursus non, porttitor in purus. Integer pellentesque ultricies felis, non sodales enim bibendum nec. Nulla gravida ipsum sit amet ipsum porttitor dictum. Fusce mattis ultricies enim ut lORem adipiscing. In fermentum tellus sit lorem urna vestibulum fringilla id sit amet odio. Nunc eget lorem at leo commodo porta feugiat vel quam. Nam vehicula blandit neque, eget pharetra nulla mattis in. Nullam augue neque, lacinia quis commodo a, lobortis ut tellus. Curabitur eu tristique risus. Phasellus iaculis, sem sit amet aliquam tincidunt, odio ligula posuere mauris, sollicitudin pharetra massa tortor in leo. In interdum facilisis auctor. Nullam non congue felis. Vestibulum cursus ante a sapien commodo at luctus libero dapibus. Sed pulvinar aliquam nulla, tempor facilisis purus faucibus at.

Tested at: http://regexpal.com/

  • 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-27T05:41:12+00:00Added an answer on May 27, 2026 at 5:41 am

    This gets ALL words in the text except Lorem.

    result = subject.match(/\b(?!Lorem\b)\w+\b/g);
    

    Not sure if this is what you were looking for though!

    Explanation:

    // \b(?!\bLorem\b)\w+\b
    // 
    //    Assert position at a word boundary «\b»
    //    Assert that it is impossible to match the regex below starting at this position (negative lookahead) «(?!\bLorem\b)»
    //    Match the characters “Lorem” literally «Lorem»
    //    Assert position at a word boundary «\b»
    //    Match a single character that is a “word character” (letters, digits, etc.) «\w+»
    //    Between one and unlimited times, as many times as possible, giving back as needed (greedy) «+»
    //    Assert position at a word boundary «\b»
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to select every column of a table, but want to have
I want to select every textarea that does not have a DIV with class
I have this table. I want to select cat id = 4 and every
If I want to select every image which it's alt is Home for example,
i have users table and i have posts table i want select from users
I want to select all categories from a webservice. The webservice does not have
So I have 2d matrix and I want to extract every fifth value from
I want to select all words like baaac czzzd dkcvvvvz They all have letters
I sort the rows on date. If I want to select every row that
How would i select the below item, i do not want to select every

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.