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

The Archive Base Latest Questions

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

Alright, this one’s interesting. I have a solution, but I don’t like it. The

  • 0

Alright, this one’s interesting. I have a solution, but I don’t like it.

The goal is to be able to find a set of lines that start with 3 periods – not an individual line, mind you, but a collection of all the lines in a row that match. For example, here’s some matches (each match is separated by a blank line):

...

...hello

...
...hello
...world
...
...wazzup?
...

My solution is as follows:

^\.\.\..*(\n\.\.\..*)*$

It matches all those, so it’s what I’m using for now – however, it looks kinda silly to repeat the \.\.\..* pattern. Is there a simpler way?

Please test your regex before submitting it, rather than submit what “should work.” For example, I tried the following first:

(^\.\.\..*$)+

which only returned individual lines, even though in my mind it looks like it would do the trick – I guess I just don’t understand regex internals. (And no, I didn’t need to set any flags to get ^ and $ to match line boundaries, since I’m implementing this in Ruby.)

So I’m not totally sure there’s a good answer, but one would be much appreciated – thanks in advance!

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

    In most regex implementations you can shorten \.\.\. using \.{3} so your solution would turn into \.{3}.*(\n\.{3}.*)*.

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

Sidebar

Related Questions

Alright. I have a query that looks like this: SELECT SUM(`order_items`.`quantity`) as `count`, `menu_items`.`name`
Alright, so I have a query that looks like this: SELECT `orders`.*, GROUP_CONCAT( CONCAT(
Alright, I have been breaking my head over this one for more than a
I have a namespace like this in one of my aspx pages (.NET 1.1)
Alright, I presented this question on the MSDN forums but have yet to receive
Alright, this one (3a; sample problem with provided answer) has got me scratching my
Alright so I have this C++ image capturing class. I was wondering if I
Alright, this one's been puzzling me for a bit. the following function encodes a
Alright guys, I really hurt my brain over this one and I'm curious if
Alright this probably is the worst error I have found ever. I have two

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.