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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:10:59+00:00 2026-06-18T05:10:59+00:00

I am using Notepad++ . I am having some entries as below: 001:0> class

  • 0

I am using Notepad++. I am having some entries as below:

001:0> class Item
002:1>   def initialize(id)
003:2>     @id = id
004:2>   end

Now is there anyway to quickly remove those 001:0>,002:1>... in one shot and get them as below:

 class Item
   def initialize(id)
     @id = id
   end

Thanks

  • 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-18T05:11:01+00:00Added an answer on June 18, 2026 at 5:11 am

    Use the Replace dialog, and check the box Regular Expressions at the bottom.

    enter image description here

    Find:

    ^(\d+?:\d+?>)(.*)
    

    RegexBuddy’s Explanation tree:

    • Options: ^ and $ match at line breaks
    • Assert position at the beginning of a line (at beginning of the string
      or after a line break character) «^»
    • Match the regular expression below and capture its match into
      backreference number 1 «(\d+?:\d+?>)»
    • Match a single digit 0..9 «\d+?»
    • Between one and unlimited times, as few times as possible,
      expanding as needed (lazy) «+?»
    • Match the character “:” literally «:»
    • Match a single digit 0..9 «\d+?»
    • Between one and unlimited times, as few times as possible,
      expanding as needed (lazy) «+?»
    • Match the character “>” literally «>»
    • Match the regular expression below and capture its match into
      backreference number 2 «(.*)»
    • Match any single character that is not a line break character «.*»
    • Between zero and unlimited times, as many times as possible, giving
      back as needed (greedy) «*»

    Replace:

    \2
    

    This replaces the entire match with the content of capture group 2 (see above)

    Click Replace All

    enter image description here

    Note that the regular expression for the find portion will also match numbers in the format 00:0>, 0000:00>, 00000000:00000000>, and so forth. If that won’t work for you, change the regular expression to:

     ^(\d{3}+:\d>)(.*)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having some trouble using resource files. In my project I'm using a bunch
I've developed a Notepad kinda Windows application in VB.NET using Visual Studio 2008. Is
Win32's FindWindow() can find a window having the title of Untitled - Notepad, but
Having problems with formatting CSV created from C# code. In the notepad file the
I'm using English version of Vista and having problems with using programs that display
I'm using Notepad++ to do most of my coding currently. However, I'd like to
I'm having some real issues in getting local files to open up via a
I am using Notepad ++ and I need to know how to add breaks
Hey, I am trying to type a message into notepad without having to have
Currently I am using the below code to start my application (which is working)

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.