Community
    • Login

    Line operation that deletes first word on each line

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 92 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.
    • Sam J.S
      Sam J.
      last edited by

      Hello,

      Long time ago, there was a line operation that deletes first word on each line. I believe this was back when it was a plugin. Is this functionality still available?

      Example:

      FIRST TODAY IS MONDAY
      SECOND TOMORROW IS TUESDAY

      After deleting first word on each line:

      TODAY IS MONDAY
      TOMORROW IS TUESDAY

      In case it matters, I’m using Notepad++ v8.7.7.

      Thank you.

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Sam J.
        last edited by

        @Sam-J said in Line operation that deletes first word on each line:

        Is this functionality still available?

        Not exactly.

        But you can do a regular expression replacement:

        Find: (?-s)^\w+ +(.*)
        Replace: ${1}

        Sam J.S 1 Reply Last reply Reply Quote 2
        • Sam J.S
          Sam J. @Alan Kilborn
          last edited by

          @Alan-Kilborn Great idea! It works wonderfully. Thank you.

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