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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:06:20+00:00 2026-05-13T00:06:20+00:00

I have been fighting this problem with the help of a RegEx cheat sheet,

  • 0

I have been fighting this problem with the help of a RegEx cheat sheet, trying to figure out how to do this, but I give up… I have this lengthy file open in Notepad++ and would like to remove all lines that do not start with a digit (0..9). I would use the Find/Replace functionality of N++. I am only mentioning this as I am not sure what Regex implementation is N++ using… Thank you

Example. From the following text:

1hello
foo
2world
bar
3!

I would like to extract

1hello
2world
3!

not:

1hello

2world

3!

by doing a find/replace on a regular expression.

  • 1 1 Answer
  • 1 View
  • 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-13T00:06:20+00:00Added an answer on May 13, 2026 at 12:06 am

    You can clear up those line with ^[^0-9].* but it will leave blank lines.

    Notepad++ use scintilla, and also using its regex engine to match those.

    \r and \n are never matched because in
    Scintilla, regular expression searches
    are made line per line (stripped of
    end-of-line chars).

    http://www.scintilla.org/SciTERegEx.html

    To clear up those blank lines, only way is choose extended mode, and replace \n\n to \n, If you are in windows mode change \r\n\r\n to \r\n

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

Sidebar

Related Questions

For the last 2 hours I have been fighting with this problem and trying
I've been fighting this problem for many hours now and could really use some
I've been fighting with this problem all day and am just about at my
I am fighting a recalcitrant VS2008 DataSet designer, it seems. I have been trying
Have been pulling out my hair trying to find out why my sessions are
I have been trying to register 3 hotkeys. I followed this example (or this
i have been fighting with this code for a few hours now.... Sample Node
What does this mean? I have been fighting with this ListView that I have
Have been trying to write an awk script which processes a log file, but
Have been studying the file system related classes of Adobe AIR 1.5, but so

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.