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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:29:16+00:00 2026-06-05T10:29:16+00:00

I am looking for consistency in my projects. But I don’t always remember that

  • 0

I am looking for consistency in my projects. But I don’t always remember that it when I am typing. This leads me to an issue when I have commented half of my project and I don’t know if I ended all the lines with a .

So, I’d like to find all the summaries that does not end with a dot to remedy this. An example of this is:

    /// <summary>
    /// This is my summary
    /// </summary>

This means that there is starting white spaces, always three / and they are all enclosed within a <summary> tag.

I started working on it and got this:

^///$[^\.]

based on

^ start of line
/// the three slashes
$ end of line
[^\.] that doesn't end with a dot.

But I fail to get it to work.
How do I find all the summary lines that does not end with a .?

  • 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-06-05T10:29:17+00:00Added an answer on June 5, 2026 at 10:29 am

    You do not need to anchor to the start of the string, as it is the ‘///’ that marks the the start of a comment line

    ///.*[^\.]$
    

    how we build this up.

    we know that the comments we are looking for start with ‘///’ and end with not ‘.’, those two strings can be matched as ‘///’ and ‘[^.]’ in between we can have anything, so ‘.*’

    You do not need a ‘^’ at the start, as a comment does not have to start at the start of the string/line.

    You might also want to account for trailing white space, so

    ///.*[^\.]\s*$
    

    I might have missed a few other points, so just shout up

    what does $ mean

    The ‘$’ symbol in regex is an anchor for the end of the string. It sort of matches new lines, except (perhaps depending on implementation) it can match simply the end of input. It works the same as ‘^’ which matches the start of input

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

Sidebar

Related Questions

Looking back at my past projects I often encounter this one: A client or
I have an application that loads lots of data into memory (this is because
I have a large solution that contains C# and C++ projects. After I code
Looking for some ideas here... I have a MySQL table that has 100K rows
I've been looking for a C++ SQL library implementation that is simple to hook
I’m looking at ways to improve the consistency, brevity, and readability of some code
We are using Eclipselink for ORM, but we have a need for some more
I am working on an application that involves maintaining consistency between two local directories.
I've never been much to use C++ I/O streams and have always opted for
I have been doing a lot of reading but not coming up with any

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.