Community
    • Login

    Removing unwanted text in multiple lines

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 156 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.
    • Brentley HefnerB
      Brentley Hefner
      last edited by

      The lines i have are

      0A english.iff 3158920 1794838
      0A french.iff 4953758 1840843
      0C 2ku_dribbling_tpthesitation.mov 47182965 76800
      0C 2ku_dribbling_tptjab.mov 47259765 262144
      2Y newaudio/lines_ps/000110-035106-000000-002163-000000-000001.wav 16899133815 4399
      2Y newaudio/lines_ps/000110-035106-000000-002164-000000-000001.wav 16899138214 6460

      I want it to become this

      english.iff
      french.iff
      2ku_dribbling_tpthesitation.mov
      2ku_dribbling_tptjab.mov
      newaudio/lines_ps/000110-035106-000000-002163-000000-000001.wav
      newaudio/lines_ps/000110-035106-000000-002164-000000-000001.wav

      Is there any easy way to do this? Thank you

      astrosofistaA 1 Reply Last reply Reply Quote 0
      • astrosofistaA
        astrosofista @Brentley Hefner
        last edited by

        @Brentley-Hefner

        Yes, I think so. Try the following regex:

        Search: (?-s)^\w+ ([^ ]+).*
        Replace: $1
        

        Put the caret at the very beginning of the document, select the Regular Expression mode and click on Replace All.

        Hope this helps.

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