Community

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

    Regex lines

    Help wanted · · · – – – · · ·
    2
    3
    40
    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.
    • kracovwolf
      kracovwolf last edited by kracovwolf

      Is there a way to remove this via expression that’s on several lines with varying numbers? Also without removing the entire line?

      Dialogue: ,0:00:08.89,0:00:10.63,Default,,0,0,0,,{\an1\pos(480,972)}Joe: First one of season 8.
      Dialogue: ,0:00:11.20,0:00:12.86,Default,,0,0,0,,{\an1\pos(948,972)}[ Giggling ]
      

      I just need to remove this part of every line

      {\an1\pos(480,972)}
      
      astrosofista 1 Reply Last reply Reply Quote 0
      • astrosofista
        astrosofista @kracovwolf last edited by astrosofista

        Hi @kracovwolf

        If I correctly understood your wish, this regex will accomplish it:

        Search: \Q{\an1\pos(\E\d+,\d+\Q)}\E
        Replace: [leave empty]
        

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

        Take care and have fun!

        1 Reply Last reply Reply Quote 2
        • kracovwolf
          kracovwolf last edited by

          Thanks! I love this forum and program

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