Community

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

    Finding every third line that doesn't begin with Todd Easton

    Help wanted · · · – – – · · ·
    3
    6
    55
    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.
    • Todd Easton
      Todd Easton last edited by

      First off, I’m a Notepad++ newbie. I did try to figure this out, but I haven’t gotten there yet.

      I have many Zoom meeting transcripts. I’d like to go through them and see who besides me talked and what they said. I’ve pasted in three “records” from a transcript. The pasted-in material is between the asterisks.

      Is there a way to use one of the commands on the Search menu to find the “third lines” that begin with a name different from my name (Todd Easton).

      Thanks, Todd


      15
      00:02:17.760 --> 00:02:22.980
      Todd Easton: Talk about talk more about what’s behind the demand curve.

      16
      00:02:24.240 --> 00:02:40.590
      Todd Easton: Up to now we’ve focused on substitution we focused on the idea that, if the price of a product goes up I may buy less of it because i’ll pivot to a substitute if the price of.

      17
      00:02:42.540 --> 00:02:52.530
      Todd Easton: My favorite chocolate bar goes up right maybe I buy a different chocolate bar maybe I buy a granola bar or something if i’m really desperate right.


      Todd Easton 1 Reply Last reply Reply Quote 0
      • Todd Easton
        Todd Easton @Todd Easton last edited by

        @Todd-Easton Oh, it looks like the asterisks don’t show. They were immediately before 15 and immediately after “desperate right.”

        Alan Kilborn 1 Reply Last reply Reply Quote 0
        • guy038
          guy038 last edited by

          Hello, @todd-easton and All,

          Considering your text, I suppose that this regex expression should work :

          SEARCH/MARK (?-si)^(?=\u)(?!Todd Easton).+?(?=:)

          Notes :

          • This regex searches, from beginning of line ( ^ ), the shortest non-empty range of standard characters ( (?-s).+? ) which is followed by a colon ( (?=:) ), and which begins with an uppercase letter ( (?-i)(?=\u) ) and does not begin with the string Todd Easton, with that case ( (?-i)(?!Todd Easton) ) => So, it selects any complete name, different from Todd Easton

          • You can bookmark all the lines containing a match, ticking the Bookmark line option in the Mark dialog ( Ctrl + M ) for further process in the Search > Bookmark dialog or when right-clicking on the Bookmark margin

          • You can also copy all these lines by clicking on the Copy Marked Text button and pasting the results in a new tab ( Ctrl+ N )

          Best Regards,

          guy038

          1 Reply Last reply Reply Quote 1
          • Alan Kilborn
            Alan Kilborn @Todd Easton last edited by Alan Kilborn

            @Todd-Easton

            So, I think you might try this Find what expression:

            ^\d+\R\d{2}:\d{2}:\d{2}\.\d{3}\h-->\h\d{2}:\d{2}:\d{2}\.\d{3}\R\K(?!Todd Easton)(?-s).+

            and use Regular expression Search mode.

            It looks complicated, but it really isn’t.

            If you have success with it, and you want an explanation of how it works, let us know.

            @guy038 and I had different approaches. I maybe had more “fun” with mine (and perhaps made mine more restrictive for matching your data).

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

              Hi, @todd-easton and All,

              I read your post too quickly !. Indeed, you said :

              Is there a way to use one of the commands on the Search menu to find the “third lines” that begin with a name different from my name (Todd Easton).

              SEARCH/MARK (?-si)^(.+\R){2}(?=\u)(?!Todd Easton).+\R

              Notes :

              • This new version first searches for two complete lines ( (?-s)^(.+\R){2} ), followed by a third complete line ( (?-s).+\R ) which begins with an uppercase letter ( (?-i)(?=\u) ) and does not begin with the string Todd Easton, with this exact case ( (?-i)(?!Todd Easton) )

              BR

              guy038

              1 Reply Last reply Reply Quote 1
              • Todd Easton
                Todd Easton last edited by

                Thanks guy038 and Alan Kilborn for your quick assistance!

                guy038’s first method seems to work great. I’m using his expression with Mark All and then skipping from student to student in the transcript using F2.

                This is much more fun than a visual search for student names!

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