<?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[Batch delete a RANGE OF LINES in multiple files?]]></title><description><![CDATA[<p dir="auto">I am editing files in <em><strong>Poser Pro 11.</strong></em> They are text files that define the location and poses of rigged 3D objects. This is irrelevant info, but I provide it in case someone asks thinking that the language somehow matters to the task at hand.</p>
<p dir="auto">I have a range of text that I would like to delete from 50+ files.<br />
The text starts on line 10 and ends on line 57.</p>
<p dir="auto">In each of those files, I want to delete that range. Please note:</p>
<ul>
<li>Although the opening is unique, the closing is not (there are LOTS of quadruple closing brackets in this file).</li>
<li>Rather than figure out some workaround about searching for a string of info (that occasionally changes: sometimes there is an extra space in there after a number or bracket), <em><strong>I would rather just delete the range of lines.</strong></em></li>
</ul>
<p dir="auto">Is this possible?<br />
If not, I am open to other suggestions. But please be mindful – the closing range is not unique.</p>
<p dir="auto">Sample of the text (copied from Notepad++)</p>
<p dir="auto">actor hip:1<br />
{<br />
channels<br />
{<br />
rotateY yrot<br />
{<br />
keys<br />
{<br />
k  0  -110<br />
}<br />
}<br />
rotateZ zrot<br />
{<br />
keys<br />
{<br />
k  0  -0<br />
}<br />
}<br />
rotateX xrot<br />
{<br />
keys<br />
{<br />
k  0  -5<br />
}<br />
}<br />
translateX xtran<br />
{<br />
keys<br />
{<br />
k  0  0<br />
}<br />
}<br />
translateY ytran<br />
{<br />
keys<br />
{<br />
k  0  -0.00400003<br />
}<br />
}<br />
translateZ ztran<br />
{<br />
keys<br />
{<br />
k  0  0<br />
}<br />
}<br />
}<br />
}</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/17784/batch-delete-a-range-of-lines-in-multiple-files</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 18:02:11 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/17784.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 Jun 2019 23:31:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Batch delete a RANGE OF LINES in multiple files? on Sat, 08 Jun 2019 20:52:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/15538">@Mike-Mitchell</a></p>
<p dir="auto">Well…let’s see how it goes on your data…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/44353</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44353</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 08 Jun 2019 20:52:26 GMT</pubDate></item><item><title><![CDATA[Reply to Batch delete a RANGE OF LINES in multiple files? on Sat, 08 Jun 2019 18:55:27 GMT]]></title><description><![CDATA[<p dir="auto">You have effectively blown my mind!<br />
I’ll try it this evening and let you know if it works.<br />
Thank you very much!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/44350</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44350</guid><dc:creator><![CDATA[Mike Mitchell]]></dc:creator><pubDate>Sat, 08 Jun 2019 18:55:27 GMT</pubDate></item><item><title><![CDATA[Reply to Batch delete a RANGE OF LINES in multiple files? on Sat, 08 Jun 2019 12:53:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/15538">@Mike-Mitchell</a></p>
<p dir="auto">Here’s a technique you might try (try it on ONE file, first, of course, and have backups of your data at all times!)<br />
.<br />
Find: <code>(?s)(?&lt;!\x0A)^((?:.*?\R){9})(?:.*?\R){48}</code><br />
Replace: <code>\1</code><br />
Search mode: Regular expression</p>
<p dir="auto">What this does is match the first 57 lines, but it captures only the first 9 lines.  Then it replaces the whole first-57-line blob with what was captured (i.e., the first 9 lines).  Thus, effectively lines 10-57 get removed.</p>
<p dir="auto">You may have to tweak the numbers in the find expression a bit, I tried it out on something much smaller.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/44347</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44347</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 08 Jun 2019 12:53:23 GMT</pubDate></item></channel></rss>