<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Eliminate excess verbiage from audio transcript]]></title><description><![CDATA[<p dir="auto">Fellow Notepad++ Users,</p>
<p dir="auto">I want to eliminate excess verbiage from Zoom audio transcripts. For unknown reasons, Zoom tends to divide a single sentence into three or four lines, each proceeded by the name of the speaker.</p>
<p dir="auto">So that you know I did my homework, I browsed and searched the Notepad++ User Manual and I searched this Community.</p>
<p dir="auto">My technical know-how is limited. I will therefore not be offended if you explain it to me like I’m 5.  ;-)</p>
<p dir="auto">Here is the data I currently have (“before” data):</p>
<pre><code>Dr Worthen: blah blah blah
Dr Worthen: blah blah blah
Dr Worthen: blah blah blah
Dr Worthen: blah blah blah
John Doe: blah blah blah
John Doe: blah blah blah
John Doe: blah blah blah
John Doe: blah blah blah
</code></pre>
<p dir="auto">I would like to transform that data into the following (“after” data):</p>
<pre><code>Dr Worthen: blah blah blah blah blah blah blah blah blah
John Doe: blah blah blah blah blah blah blah blah blah
</code></pre>
<p dir="auto">Many thanks,</p>
<p dir="auto">Mark</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/26062/eliminate-excess-verbiage-from-audio-transcript</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 10:15:30 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/26062.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 30 Aug 2024 15:45:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Eliminate excess verbiage from audio transcript on Wed, 04 Sep 2024 20:43:49 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-d-worthen-psyd" aria-label="Profile: mark-d-worthen-psyd">@<bdi>mark-d-worthen-psyd</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-olson" aria-label="Profile: mark-olson">@<bdi>mark-olson</bdi></a> and <strong>All</strong>,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-d-worthen-psyd" aria-label="Profile: mark-d-worthen-psyd">@<bdi>mark-d-worthen-psyd</bdi></a>, I didn’t answer before, as we were travelling back home. Holidays time is <strong>over</strong> :-(</p>
<hr />
<p dir="auto">Just for information, I found out a method which needs <strong>two</strong> regex S/R <strong>only</strong> !</p>
<p dir="auto">Let’s take again the <a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-olson" aria-label="Profile: mark-olson">@<bdi>mark-olson</bdi></a>’s <em>INPUT</em> text :</p>
<pre><code class="language-diff">Dr Worthen: blah1 blah2
Dr Worthen: blah3 blah4
Dr Worthen: blah5
Dr Worthen: blah6 blah7 blah8
John Doe: zjk1
John Doe: zjk2 zjk3 zjk4 zjk5
John Doe: zjk6 pouy1 zjk8
John Doe: pouy2
Bob Quzenheim: vbg
Dr Worthen: nvbm
Bob Quzenheim: jrrke
Bob Quzenheim: bnbnm
</code></pre>
<p dir="auto">With this <strong>first</strong> S/R, we simply add a <strong>line-break</strong> after each <strong>block</strong> of lines, beginning with the <strong>same</strong> string before the <strong>colon</strong></p>
<p dir="auto">SEARCH <strong><code>(?-s)^(.+:).+\R(\1.+\R)*</code></strong></p>
<p dir="auto">REPLACE <strong><code>$0\r\n</code></strong></p>
<p dir="auto">Giving this <strong>temporary</strong> text :</p>
<pre><code class="language-diff">Dr Worthen: blah1 blah2
Dr Worthen: blah3 blah4
Dr Worthen: blah5
Dr Worthen: blah6 blah7 blah8

John Doe: zjk1
John Doe: zjk2 zjk3 zjk4 zjk5
John Doe: zjk6 pouy1 zjk8
John Doe: pouy2

Bob Quzenheim: vbg

Dr Worthen: nvbm

Bob Quzenheim: jrrke
Bob Quzenheim: bnbnm
</code></pre>
<p dir="auto">Then, with the <strong>second</strong> S/R :</p>
<ul>
<li>
<p dir="auto">It removes the <strong>line-break</strong> and the <strong>next</strong> zone till a <strong>colon</strong>, if this line-break do <strong>not begin</strong> the current line</p>
</li>
<li>
<p dir="auto">It removes any <strong>pure empty</strong> line, as well</p>
</li>
</ul>
<p dir="auto">SEARCH <strong><code>(?&lt;=.)\R.+:|^\R</code></strong>    OR    <strong><code>(?&lt;!^)\R.+:|^\R</code></strong></p>
<p dir="auto">REPLACE <strong><code>Leave EMPTY</code></strong></p>
<p dir="auto">And we get our <strong>expected</strong> <em>OUTPUT</em> text :</p>
<pre><code class="language-diff">Dr Worthen: blah1 blah2 blah3 blah4 blah5 blah6 blah7 blah8
John Doe: zjk1 zjk2 zjk3 zjk4 zjk5 zjk6 pouy1 zjk8 pouy2
Bob Quzenheim: vbg
Dr Worthen: nvbm
Bob Quzenheim: jrrke bnbnm
</code></pre>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/96410</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/96410</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 04 Sep 2024 20:43:49 GMT</pubDate></item><item><title><![CDATA[Reply to Eliminate excess verbiage from audio transcript on Fri, 30 Aug 2024 17:44:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-olson" aria-label="Profile: Mark-Olson">@<bdi>Mark-Olson</bdi></a> Wow! That worked like a charm. I really appreciate you explaining it all so clearly. Thank you! ~ Mark  P.S. I will upvote your post as soon as I accumulate the needed 2 credits.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/96356</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/96356</guid><dc:creator><![CDATA[Mark D Worthen PsyD]]></dc:creator><pubDate>Fri, 30 Aug 2024 17:44:05 GMT</pubDate></item><item><title><![CDATA[Reply to Eliminate excess verbiage from audio transcript on Fri, 30 Aug 2024 16:25:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-d-worthen-psyd" aria-label="Profile: Mark-D-Worthen-PsyD">@<bdi>Mark-D-Worthen-PsyD</bdi></a></p>
<p dir="auto">Fortunately, this can be done in Notepad++ without plugins, using only the find/replace form. The regular expressions required aren’t the simplest, but they’re also not incredibly hard to understand. <a href="https://npp-user-manual.org/docs/searching/#regular-expressions" rel="nofollow ugc">You can read about regular expressions in Notepad++ here.</a></p>
<p dir="auto">Before you start, open the <code>Replace</code> tab of the find/replace form (<code>Search-&gt;Replace...</code> from the main menu, Ctrl+H using default keybindings).</p>
<p dir="auto">Next, make sure that the <code>Wrap around</code> box is checked, and select the <code>Regular expression</code> circle in the <code>Search Mode</code> field.</p>
<p dir="auto">Finally, when I say <code>Replace all X with Y</code>, I mean the following:</p>
<ol>
<li>Put <code>X</code> in the <strong>Find what</strong> field</li>
<li>Put <code>Y</code> in the <strong>Replace with</strong> field</li>
<li>Select <strong>Replace All</strong></li>
</ol>
<p dir="auto">Suppose you start with this file:</p>
<pre><code>Dr Worthen: blah1 blah2
Dr Worthen: blah3 blah4
Dr Worthen: blah5
Dr Worthen: blah6 blah7 blah8
John Doe: zjk1
John Doe: zjk2 zjk3 zjk4 zjk5
John Doe: zjk6 pouy1 zjk8
John Doe: pouy2
Bob Quzenheim: vbg
Dr Worthen: nvbm
Bob Quzenheim: jrrke
Bob Quzenheim: bnbnm
</code></pre>
<ol>
<li>Replace all <code>(?-s)^([^:]+)(?:.*\R\1)*</code> with <code>\x07${0}</code>
<ul>
<li>This will add the <code>BEL</code> character (ASCII code 7) at the beginning of the first line of each sequence of lines with the same speaker.</li>
<li>I chose the <code>BEL</code> character because it does not naturally occur in normal text documents.</li>
</ul>
</li>
<li>Replace all <code>(?-s)\R[^\x07\r\n][^:\r\n]*:(.*)</code> with <code>${1}</code>
<ul>
<li>This will find all lines that <em>don’t start with <code>BEL</code></em> (so all lines except the speaker’s first in that chunk), and remove the newline before that line and the name of the speaker</li>
</ul>
</li>
<li>Replace all <code>^\x07</code> with nothing (leave the <strong>Replace with</strong> box empty)
<ul>
<li>This will remove the leading <code>BEL</code> characters we used as markers.</li>
</ul>
</li>
</ol>
<p dir="auto">You will be left with the following:</p>
<pre><code>Dr Worthen: blah1 blah2 blah3 blah4 blah5 blah6 blah7 blah8
John Doe: zjk1 zjk2 zjk3 zjk4 zjk5 zjk6 pouy1 zjk8 pouy2
Bob Quzenheim: vbg
Dr Worthen: nvbm
Bob Quzenheim: jrrke bnbnm
</code></pre>
<p dir="auto">If you start recording a macro (<code>Macro-&gt;Start Recording</code>) immediately before step 1 and stop recording (<code>Macro-&gt;Stop Recording</code>) immediately after step 3, then save the macro (<code>Macro-&gt;Save Current Recorded Macro</code>), you can easily repeat this sequence of find replaces whenever you want.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/96355</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/96355</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Fri, 30 Aug 2024 16:25:32 GMT</pubDate></item></channel></rss>