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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:40:10+00:00 2026-05-12T17:40:10+00:00

I want to write a regular expression for the following scenario. If line starts

  • 0

I want to write a regular expression for the following scenario.

If line starts with word “project“, then allow any type of character after it except “.” (dot).

For example:

project is to pick up of discontinued items.

The above line should not get selected and the following lines should get selected:

project :
Project #1

I have created regular expression like this, but it is not working in few scenarios. Can anyone help me correcting my regular expression or creating new RE?

project\s[\s\S^\.]{0,50}

The logic for the above RE is: select string containing word “project”, followed by one whitespace character, followed by 0 to 50 characters of all types except dot character.

  • 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-12T17:40:11+00:00Added an answer on May 12, 2026 at 5:40 pm

    What about:

    /^project[^.]*$/i if you want to select “project”

    /^project[^.]+$/i if you need at least one char after project

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

Sidebar

Related Questions

I want to write a regular expression that will match the following string a
I want to write a regular expression which can match following specification for string
I wrote the following Regular Expression m = re.match('.+SPELL_DAMAGE,.+,([A-Z][a-z]+),.+([A-Z][a-z]+\s[A-Z][a-z]+!?),\d+x\d+,(\d+)',line) I want the second group
I want to write a simple regular expression in Python that extracts a number
I write regular expression for alphanumerics, but it is not taking space. I want
I want to know how to write the regular expression in javascript. Please help
I want to write C++ library for Regular Expression. I know there are many
I want to write regular expression library in C/C++. What is the good starting
Let's say I want to write a regular expression to change all <abc> ,
In C#, I want to write a regular expression that will accept only years

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.