Menu

Search question, PLEASE HELP!

writhe10
2009-07-04
2012-11-13
  • writhe10

    writhe10 - 2009-07-04

    I'm not sure if its possible, but I have thousands of lines, when I search for something specific, it returns what I need but it has "Line 142193" next to it? How do I get rid of that?

    ex:

    Line XXXXXXX TEXTHERE
    Line XXX          TEXTHERE
    Line XXXXXX   TEXTHERE
    Line XXXXX     TEXTHERE

    I can't go through and delete "line xxxxx" manually, that would take months. what can I do? if I cant do it with notepad++ how can I do it?!

     
    • cchris

      cchris - 2009-07-04

      Use a regular search replace: I have slightly modified your request to account for the exact layout of search results.

      Search: ^\s*Line \d+:
      Replace with: <nothing>
      Set Regular expressions search mode
      Replace all in current document

      Should take like a few seconds if you have that many lines.
      Explained:  When pattern starts a line with optional whitespace, then "Line " followed by one or more digits and a colon, replace with nothing, ie delete pattern. You may want to add a \s* after the colon to remove the next sequence of spaces.

      CChris

       
MongoDB Logo MongoDB