Community
    • Login

    Regex lines

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 179 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.
    • kracovwolfK
      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)}
      
      astrosofistaA 1 Reply Last reply Reply Quote 0
      • astrosofistaA
        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
        • kracovwolfK
          kracovwolf
          last edited by

          Thanks! I love this forum and program

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