Community
    • Login

    Remove four specific lines in Notepad++ without delete similar lines

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 199 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ric12gR
      ric12g
      last edited by

      Is it possible to remove only the lines that say:

      $ ('. button'). css ({
           'position': 'absolute',
           'z-index': '-2'
           });
      

      I try but when I copy and paste them in notepad ++, only the first line is copied and if I copy them separately, similar lines will be deleted .ie }); Any ideas? Thanks!!!

      $('.button').css({
              'position': 'absolute',
                  'z-index': '-2'
                      });
      
          $('.button').css({
              'position': 'absolute',
                  'z-index': '-2'
                      });
      
          $('.div').css({
              'position': 'absolute',
                  'z-index': '-1'
                      });
      
      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @ric12g
        last edited by

        @ric12g

        Select those four lines in Notepad++ and press Ctrl+f.
        All of the line data will appear in the Find what box of the Find dialog, but it will appear to run together.

        Pressing Find Next at that point should find the block of four lines.

        From there you can proceed to a Replace operation, where you replace with nothing to effectively delete the lines.

        You probably want to make sure you get the line-ending on the 4th line in your original selection.

        If you’re trying to match similar but not exact matches (as your lower example hints at), then this is a slightly different problem. But rather than answer something you didn’t ask for, I’ll wait until that’s asked for. :-)

        1 Reply Last reply Reply Quote 2
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors