<?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[Deleting sections.]]></title><description><![CDATA[<p dir="auto">I wish to delete everything not in the []. so from {"start…to },</p>
<p dir="auto">{“start”:15.95,“end”:18.59,“text”:[“The way you come up like”,“in the defensive line?”]},</p>
<p dir="auto">What do I need to command?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23452/deleting-sections</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 13:38:46 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23452.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Sep 2022 08:01:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Deleting sections. on Fri, 09 Sep 2022 08:36:19 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/stuart-benson" aria-label="Profile: stuart-benson">@<bdi>stuart-benson</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: terry-r">@<bdi>terry-r</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">OK, I see… So, the <strong>best</strong> option is to use the <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: terry-r">@<bdi>terry-r</bdi></a> <strong>method</strong>, as there are <strong>several</strong> zones <strong><code>[.........]</code></strong> : per line :</p>
<ul>
<li>
<p dir="auto">Open the <strong>Mark</strong> dialog ( <strong><code>Ctrl + M</code></strong> )</p>
</li>
<li>
<p dir="auto"><strong>Uncheck</strong> all <strong>box</strong> options</p>
</li>
<li>
<p dir="auto">SEARCH <strong><code>(?-s)(?&lt;=\x5B").*?(?="\x5D)</code></strong>     if you use <strong>regular</strong> quotes <strong><code>"</code></strong></p>
</li>
</ul>
<p dir="auto">OR</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>(?-s)(?&lt;=\x5B“).*?(?=”\x5D)</code></strong>     if you use <strong>smart</strong> quotes <strong><code>“</code></strong> and <strong><code>”</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Check</strong> the <strong><code>Purge for each search</code></strong> and <strong><code>Wrap around</code></strong> options</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search <strong>mode</strong></p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Mark All</code></strong> button</p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Copy Marked Text</code></strong> button</p>
</li>
<li>
<p dir="auto">Open a <strong>new</strong> tab ( <strong><code>Ctrl + N</code></strong> )</p>
</li>
<li>
<p dir="auto">Paste the <strong>clipboard</strong>’s contents ( <strong><code>Ctrl + V</code></strong> )</p>
</li>
</ul>
<p dir="auto">Voila !</p>
<p dir="auto">You’ll get the <strong>expected</strong> text :</p>
<pre><code class="language-diff">Hi, team.
We’re looking at”,“our rush defense.
Today’s session is going to”,“look at our outside alignment,
and why that’s important”,“for a rush defense.
OK team, what is an”,“outside alignment?
The way you come up like”,“in the defensive line?
How does it relate”,“to an opposition?
Stand up on the far shoulder”,“from where the ball is.
Most teams that”,“do a rush defense
start on that outside”,“shoulder, why do you reckon?
I think it requires”,“a lot of skill
from the player”,“catching the ball
to know what’s”,“going on that side
if the ball is coming this way.
So probably that’s why”,“it’s important to step
on the far shoulder.
Yeah, I like that.
it makes that attacker”,“have to use far more skill.
OK, men.
So let’s just presume”,“I’m the attacker.
We’ve got defender”,“1 and defender 2.
So who’s your man, here?
Who’s your man, Jay?
</code></pre>
<hr />
<p dir="auto">If your prefer <strong>join</strong> all these <strong>different</strong> lines into <strong>one</strong> line only :</p>
<ul>
<li>
<p dir="auto">Select all these <strong>resulting</strong> lines ( <strong><code>Ctrl + A</code></strong> )</p>
</li>
<li>
<p dir="auto"><strong><code>Edit &gt; Line Operations &gt; Join Lines</code></strong> ( <strong><code>Ctrl + J</code></strong> )</p>
</li>
</ul>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79630</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79630</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 09 Sep 2022 08:36:19 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting sections. on Fri, 09 Sep 2022 00:26:50 GMT]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">Thank you very much for you reply.<br />
I am sorry I did not put everything up.</p>
<p dir="auto">For some reason, everything is on one line, so after trying what <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> suggested (thank you), it didn’t work.</p>
<p dir="auto">The goal is the keep everything in the square brackets (excluding the "). I do not need anything else, except the text in the square brackets. I do not even need the square brackets.<br />
Again, thank you very much for all your help.<br />
As the line is VERY long, this is a portion of it. Again, I am not sure why it it all on one line when put into Notepad:</p>
<p dir="auto">{“start”:5.76,“end”:6.26,“text”:[“Hi, team.”]},{“start”:6.26,“end”:8.81,“text”:[“We’re looking at”,“our rush defense.”]},{“start”:8.81,“end”:11.51,“text”:[“Today’s session is going to”,“look at our outside alignment,”]},{“start”:11.51,“end”:13.7,“text”:[“and why that’s important”,“for a rush defense.”]},{“start”:13.7,“end”:15.95,“text”:[“OK team, what is an”,“outside alignment?”]},{“start”:15.95,“end”:18.59,“text”:[“The way you come up like”,“in the defensive line?”]},{“start”:18.59,“end”:20.81,“text”:[“How does it relate”,“to an opposition?”]},{“start”:20.81,“end”:23.84,“text”:[“Stand up on the far shoulder”,“from where the ball is.”]},{“start”:23.84,“end”:25.627,“text”:[“Most teams that”,“do a rush defense”]},{“start”:25.627,“end”:27.71,“text”:[“start on that outside”,“shoulder, why do you reckon?”]},{“start”:27.71,“end”:29.485,“text”:[“I think it requires”,“a lot of skill”]},{“start”:29.485,“end”:30.86,“text”:[“from the player”,“catching the ball”]},{“start”:30.86,“end”:32.619,“text”:[“to know what’s”,“going on that side”]},{“start”:32.619,“end”:33.96,“text”:[“if the ball is coming this way.”]},{“start”:33.96,“end”:36.59,“text”:[“So probably that’s why”,“it’s important to step”]},{“start”:36.59,“end”:38.48,“text”:[“on the far shoulder.”]},{“start”:38.48,“end”:40.1,“text”:[“Yeah, I like that.”]},{“start”:40.1,“end”:43.31,“text”:[“it makes that attacker”,“have to use far more skill.”]},{“start”:43.31,“end”:44.33,“text”:[“OK, men.”]},{“start”:44.33,“end”:46.16,“text”:[“So let’s just presume”,“I’m the attacker.”]},{“start”:46.16,“end”:49.31,“text”:[“We’ve got defender”,“1 and defender 2.”]},{“start”:49.31,“end”:51.74,“text”:[“So who’s your man, here?”]},{“start”:51.74,“end”:52.62,“text”:[“Who’s your man, Jay?”]},</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79625</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79625</guid><dc:creator><![CDATA[stuart benson]]></dc:creator><pubDate>Fri, 09 Sep 2022 00:26:50 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting sections. on Thu, 08 Sep 2022 18:41:41 GMT]]></title><description><![CDATA[<blockquote>
<blockquote>
<p dir="auto">I suppose that <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: terry-r">@<bdi>terry-r</bdi></a>, in its post, would have meant</p>
</blockquote>
</blockquote>
<blockquote>
<p dir="auto">Darn that posting engine</p>
</blockquote>
<p dir="auto">That’s one of the reasons why I recommend using <code>\x5B</code> and <code>\x5D</code> when doing regexes for literal brackets: it works better in the forum,  <em>and</em> it makes it more obvious that it’s searching for a particular character rather than trying to create a regex character class.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79607</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79607</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 08 Sep 2022 18:41:41 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting sections. on Thu, 08 Sep 2022 18:15:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said in <a href="/post/79605">Deleting sections.</a>:</p>
<blockquote>
<p dir="auto">First of all, I suppose that <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: terry-r">@<bdi>terry-r</bdi></a>, in its post, would have meant :<br />
Find what: (?-s)[.+?]</p>
</blockquote>
<p dir="auto">I did, I did! Darn that posting engine. I thought I had critiqued my post but missed that, sorry <a class="plugin-mentions-user plugin-mentions-a" href="/user/stuart-benson" aria-label="Profile: stuart-benson">@<bdi>stuart-benson</bdi></a>.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79606</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79606</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Thu, 08 Sep 2022 18:15:00 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting sections. on Thu, 08 Sep 2022 17:51:52 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/stuart-benson" aria-label="Profile: stuart-benson">@<bdi>stuart-benson</bdi></a>, @tery-r, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">First of all, I suppose that <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: terry-r">@<bdi>terry-r</bdi></a>, in its post, would have meant :</p>
<p dir="auto">Find what: <strong><code>(?-s)\\[.+?\\]</code></strong></p>
<p dir="auto">This is one <strong>oddity</strong>, from our <strong>forum</strong>, to <strong>not</strong> interpret the <strong>square brakets</strong> properly :-(</p>
<hr />
<p dir="auto">Not very difficult with regexes ! I assume <strong>two</strong> hypotheses :</p>
<ul>
<li>
<p dir="auto">There <strong>only one</strong> zone <strong><code>{...........}</code></strong> per line</p>
</li>
<li>
<p dir="auto"><strong>Within</strong> that zone, there is only <strong>one</strong> zone <strong><code>[........]</code></strong> per line</p>
</li>
</ul>
<hr />
<p dir="auto">If so :</p>
<ul>
<li>
<p dir="auto">Open the <strong>Replace</strong> dialog <strong><code>Ctrl + H</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Untick all</strong> options</p>
</li>
<li>
<p dir="auto">SEARCH <strong><code>(?-s)^\{.+(?=\\[)|(?&lt;=\\]).+$</code></strong>     If you want to <em>KEEP</em> the <strong>square brackets</strong></p>
</li>
</ul>
<p dir="auto">OR</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>(?x-s) ^\{.+\\[|\\].+$</code></strong>,     if you want to <em>DELETE</em> the <strong>square brackets</strong>, as well</p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>Leave EMPTY</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Possibly</strong>, tick the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search <strong>mode</strong></p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Replace All</code></strong> button</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79605</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79605</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 08 Sep 2022 17:51:52 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting sections. on Thu, 08 Sep 2022 12:29:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stuart-benson" aria-label="Profile: stuart-benson">@<bdi>stuart-benson</bdi></a></p>
<p dir="auto">Definitely see <a href="https://community.notepad-plus-plus.org/topic/22022/faq-desk-template-for-search-replace-questions/1">HERE</a>!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79597</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79597</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 08 Sep 2022 12:29:46 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting sections. on Thu, 08 Sep 2022 09:16:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stuart-benson" aria-label="Profile: stuart-benson">@<bdi>stuart-benson</bdi></a> said in <a href="/post/79594">Deleting sections.</a>:</p>
<blockquote>
<p dir="auto">I wish to delete everything not in the []. so from {"start…to }</p>
</blockquote>
<p dir="auto">Firstly your statement doesn’t seem correct given your 1 example line. If you do delete from { to } then you are deleting the very characters you say you want to keep, i.e. the characters within the [ and ] characters.</p>
<p dir="auto">I’ve decided that what you want is more important than what you want to delete so my solution is as follows.</p>
<p dir="auto">I think you will find that looking at the problem in reverse it makes it easier to figure out. So instead of saying delete characters not inside the [ and ] characters you can say select/copy everything inside of the [ and ] characters.</p>
<p dir="auto">So you would use the Mark function with a regular expression search mode using:<br />
Find What:<code>(?-s)\[.+?\]</code><br />
Click on the “Mark All” which will then highlight all instances. Then use the “Copy Marked Text”. Open a new tab and Ctrl-V to paste the copied text. Problem solved.</p>
<p dir="auto">If this isn’t what you want then you need to provide better explanation and examples. Please read the post at the top of the Help Wanted section titled “Please Read This Before Posting”.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79595</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79595</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Thu, 08 Sep 2022 09:16:36 GMT</pubDate></item></channel></rss>