Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to remove all leading paths from each line?

    Help wanted · · · – – – · · ·
    2
    3
    226
    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 Tennet
      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 Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        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 Tennet 1 Reply Last reply Reply Quote 3
        • Frank Tennet
          Frank Tennet @Alan Kilborn last edited by

          @alan-kilborn

          Great! It works

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors