Community
    • Login

    How to remove all leading paths from each line?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 863 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.
    • Frank TennetF
      Frank Tennet
      last edited by Frank Tennet

      A file contains many lines with a path+file name on each line.

      How can remove the full path (including the last “”) from each line with Notepad++?

      Only the file names should remain

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Frank Tennet
        last edited by

        @frank-tennet

        We don’t usually provide an answer for this type of question without actual data being provided, but, assuming we are talking about Windows paths…

        Find: (?-s)^.+\\
        Replace: nothing
        Search mode: regular expression

        Frank TennetF 1 Reply Last reply Reply Quote 3
        • Frank TennetF
          Frank Tennet @Alan Kilborn
          last edited by

          @alan-kilborn

          Great! It works

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