Community

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

    Removing unwanted text in multiple lines

    Help wanted · · · – – – · · ·
    2
    2
    52
    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 Hefner
      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

      astrosofista 1 Reply Last reply Reply Quote 0
      • astrosofista
        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
        Copyright © 2014 NodeBB Forums | Contributors