Regex lines



  • 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)}
    


  • 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!



  • Thanks! I love this forum and program


Log in to reply