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

  • Home
  • SEARCH
  • 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 4334650
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:33:29+00:00 2026-05-21T10:33:29+00:00

I find Notepad++ regex to be very different from regex in Microsoft Word. I

  • 0

I find Notepad++ regex to be very different from regex in Microsoft Word. I was wondering how I can group several lines of text using Notepad++. I have a text file with 100+ URLs. They are written one URL address per line. I would like to group all of them by tens by removing the carriage returns from every first to 9th line, but retaining the carriage return on every 10th line and adding another carriage return thereafter. For example:

I want this:

http://website1.com
http://website2.com
Home
http://website4.com http://website5.com http://website6.com http://website7.com http://website8.com http://website9.com http://website10.com http://website11.com http://website12.com http://website13.com http://website14.com
Home
http://website16.com http://website17.com http://website18.com http://website19.com http://website20.com http://website21.com http://website22.com http://website23.com http://website24.com http://website25.com http://website26.com http://website27.com http://website28.com http://website29.com http://website30.com

to look like:

http://website1.comhttp://website2.comhttp://website3.comhttp://website4.comhttp://website5.comhttp://website6.comhttp://website7.comhttp://website8.comhttp://website9.comhttp://website10.com

http://website11.comhttp://website12.comhttp://website13.comhttp://website14.comhttp://website15.comhttp://website16.comhttp://website17.comhttp://website18.comhttp://website19.comhttp://website20.com

http://website21.comhttp://website22.comhttp://website23.comhttp://website24.comhttp://website25.comhttp://website26.comhttp://website27.comhttp://website28.comhttp://website29.comhttp://website30.com

Any help would be appreciated!

  • 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-21T10:33:49+00:00Added an answer on May 21, 2026 at 10:33 am

    Ok, I have found a way:

    There is a such possibility, but only with 6 entries in a row (longest regex is not parsed by the Notepad++).

    1)So, open the file and remove from it all newlines characters, so the text will be a long-long line.

    2)Open replace dialog, insert in the “Find what” field the next :

    (http://[^\:]*\.comhttp://[^\:]*\.comhttp://[^\:]*\.comhttp://[^\:]*\.comhttp://[^\:]*\.comhttp://[^\:]*\.com)

    and in the “Replace With” the next:

    \1\r\n
    

    Put the cursor at the first position in the text and press “Replace all”

    So, the regex contains this (http://[^\:]*\.com){6} (the regex is repeated 6 times). If you work with Unix and you need unix-type new line style, replace this : \1\r\n with this \1\n

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

Sidebar

Related Questions

I've been using Programmer's notepad for a while now, I find it to be
I find from reading perldoc perlvar, about a thousand lines in is help for
Win32's FindWindow() can find a window having the title of Untitled - Notepad, but
I used to often find myself coping a piece of code from a website/Word
I open the History.plist file of Safari browser using a notepad and I find
find . -type f | xargs file | grep text | cut -d':' -f1
I find the concept of the programmable, tiling, keyboard-focuessed window manager ion3 very appealing,
I find I can do more with NHibernate, and even Castle than with the
I want to know how to find the valid addresses of an application from
Possible Duplicate: How to compile legacy VB6 code Where can I find an IDE

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.