<?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 multiple lines]]></title><description><![CDATA[<p dir="auto">I know it’s possible but I think I’m having a senior moment ( or brainfart) but I want to delete segments of code from &lt;string&gt; to &lt;/string&gt; that spans multiple lines in lots of places with different text in the same file.   This is from a game that publishes a discoveries file to help plugin makers find and use the appropriate itemID and itemNames within their plugin.</p>
<p dir="auto">For example:<br />
&lt;FirstLearnedBy&gt;<br />
&lt;ServerNameA&gt;AlphaShard&lt;/ServerName&gt;<br />
&lt;Player&gt;JohnDoe&lt;/Player&gt;<br />
&lt;Guild&gt;HomeBros&lt;/Guild&gt;<br />
&lt;Date&gt;June 12, 2015&lt;/Date&gt;<br />
&lt;ServerNameB&gt;BravoShard&lt;/ServerName&gt;<br />
&lt;Player&gt;JaneWest&lt;/Player&gt;<br />
&lt;Guild&gt;RealGirrrls&lt;/Guild&gt;<br />
&lt;Date&gt;April 24, 2015&lt;/Date&gt;<br />
&lt;/FirstLearnedBy&gt;</p>
<p dir="auto">That goes on for about 60-72 lines and spams the file.  I obviously don’t need it for my addon but sitting here deleting each section takes ages in a 500,000+ file for every recipe in the game.  I’m also deleting the non-English translations of each recipe and material used.</p>
<p dir="auto">Thanks in advance for any help.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/13599/deleting-multiple-lines</link><generator>RSS for Node</generator><lastBuildDate>Fri, 16 Oct 2026 12:24:21 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/13599.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 Apr 2017 00:00:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Deleting multiple lines on Fri, 07 Apr 2017 18:58:31 GMT]]></title><description><![CDATA[<p dir="auto">That did the trick.  Thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/23415</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/23415</guid><dc:creator><![CDATA[Norson Teeferly]]></dc:creator><pubDate>Fri, 07 Apr 2017 18:58:31 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting multiple lines on Fri, 07 Apr 2017 12:09:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/norson-teeferly" aria-label="Profile: Norson-Teeferly">@<bdi>Norson-Teeferly</bdi></a></p>
<p dir="auto">So for what you’ve specified, the following should work:</p>
<p dir="auto">Find what:  <code>(?s)&lt;FirstLearnedBy&gt;.+?&lt;/FirstLearnedBy&gt;</code><br />
Replace with:  <em>make sure this box is empty</em><br />
Search mode:  <code>Regular expression</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/23402</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/23402</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Fri, 07 Apr 2017 12:09:45 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting multiple lines on Fri, 07 Apr 2017 11:39:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/norson-teeferly" aria-label="Profile: Norson-Teeferly">@<bdi>Norson-Teeferly</bdi></a>  I think you could use regex in Find/Replace form. You could try/learn regex - <a href="http://regexr.com/" rel="nofollow ugc">http://regexr.com/</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/23399</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/23399</guid><dc:creator><![CDATA[young-developer]]></dc:creator><pubDate>Fri, 07 Apr 2017 11:39:29 GMT</pubDate></item></channel></rss>