Community
    • Login

    Regex lines

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 381 Views 1 Watching
    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 Offline
      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 Offline
        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 Offline
          kracovwolf
          last edited by

          Thanks! I love this forum and program

          1 Reply Last reply Reply Quote 1

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors