<?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[Finding multiple lines in multiple files and deleting just those lines]]></title><description><![CDATA[<p dir="auto">I apologize if this is addressed elsewhere.  Actually I’m sure it must be, but I couldn’t find it.   Anyway</p>
<p dir="auto">I have a directory full of text files.  Most of them contain some lines that I need to delete.  I know I can do this by hitting Shift-Ctrl-F, typing one of the lines I want to delete in the “Find what” box, leaving the “Replace with” box empty, making sure the “Directory” box is set properly, and then clicking on “Replace in files”.   But I have a LOT of files that I need to do this with.  I had this issue before and I don’t think the answer was complicated.  I just can’t find the answer and I can’t remember it.  I SEEM to remember having to make sure “Search mode” was set to extended, but no matter what syntax I try and use now I can’t get it to work.  Any suggestions would be very much appreciated.</p>
<p dir="auto">Thanks</p>
<p dir="auto">Steve</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16132/finding-multiple-lines-in-multiple-files-and-deleting-just-those-lines</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 10:14:33 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16132.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Aug 2018 22:19:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sun, 26 Aug 2018 02:26:47 GMT]]></title><description><![CDATA[<p dir="auto">Like I said, I understand MUCH better what the regex is supposed to do and is doing.  This is the regex I’m using:<br />
<strong>(?i)^.<em>?(&lt;font.</em>?|\sync.<em>?correct|www.|.</em>(?=Help other users)|please rate|Professional Translation|advertise your|== for|WWW.MY-SUBS.COM|SLY@Moon|subXpacio|www.opensubtitles.org|Open Subtitles MKV Player|Subtitles by|Synchr:AA|Support us and become VIP|to remove all ads|AmericasCardroom|.<em>(?=Synced and corrected by BLuk)|Subrip by|million dollar).</em>?\R</strong></p>
<p dir="auto">It works flawlessly.  If I run this regex on a directory of files and some of the files have <em>consecutive</em> lines listed for removal in the regex, I’ll get a message at the end like “Replace in Files: 26 occurrences replaced”.  If I run the regex until it says “Replace in Files: 0 occurrences replaced”, all of the lines (including the multiple consecutive lines) will have been replaced.  Except - occasionally there will be multiple consecutive lines at the very end of the subtitle I’m editing.  In those instances, the very last line won’t have been removed.  I can solve that fairly simply by loading every subtitle into NP++ and just making sure that there’s a blank line (simply a CR/FL) for the last line.  I’ve tried to create a regex to do just that, but they aren’t working.  It’s not a huge deal - this is MUCH better and I’m very appreciative, but if what I’m looking for is a trivial thing and anyone has suggestions they’d be very welcome.</p>
<p dir="auto">As always, thanks very much</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34326</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34326</guid><dc:creator><![CDATA[Steve Wilson105]]></dc:creator><pubDate>Sun, 26 Aug 2018 02:26:47 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Thu, 23 Aug 2018 01:59:14 GMT]]></title><description><![CDATA[<p dir="auto">OK, I understand a little better what is happening.  I think.  If I run a regex on a subtitle file containing 100 lines, single lines of text that are in the regex ARE removed.  But sections of the subtitle that have 2 consecutive lines of text listed in the regex would only have the first line removed and a space would be prefixed to the next line.  If I run the regex a second time, the second line WOULD be removed.  If there were a third line that was listed in the regex (a rare occurrence), that third line would have TWO spaces prefixed.  Running the regex a third time would catch that line.  Except in cases of there being multiple consecutive lines at the very end of the file.  In that case the line just doesn’t get removed no matter how many times I run the regex.</p>
<p dir="auto">It’s much better than doing this all by hand though, so thanks again.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34258</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34258</guid><dc:creator><![CDATA[Steve Wilson105]]></dc:creator><pubDate>Thu, 23 Aug 2018 01:59:14 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Wed, 22 Aug 2018 07:36:01 GMT]]></title><description><![CDATA[<p dir="auto">OK.  I’ve read all the help files and understand a lot more, but I’m finding that a lot of the subtitles I’ve edited are missing lines.  For instance, the line:<br />
Help other users to choose the best subtitles<br />
might be in the subtitle and the regex would find it and remove it.  But in some of the subtitles, that line is<br />
Help other users to choose the best subtitles<br />
That leading empty space is stopping the regex from catching the line.  And of course, that’s just one of the lines that it happens to.  I’ve tried changing the line in the regex to .<em>\QHelp other users to choose the best subtitles\E.</em>|, but that doesn’t seem to have any effect.  I’ve tried<br />
.<em>Help other users to choose the best subtitles| and</em> .<em>?Help other users to choose the best subtitles|</em> , and neither of those seem to help either.  I don’t have any idea what I’m missing.  I just want to remove any line in the subtitle that contains <strong>Help other users to choose the best subtitles</strong> .  I don’t care what (if anything) precedes it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34244</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34244</guid><dc:creator><![CDATA[Steve Wilson105]]></dc:creator><pubDate>Wed, 22 Aug 2018 07:36:01 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sat, 11 Aug 2018 13:36:15 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/steve-wilson" aria-label="Profile: steve-wilson">@<bdi>steve-wilson</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: terry-r">@<bdi>terry-r</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Indeed, you can use <strong>separated</strong> lines if you include the <strong><code>(?x)</code></strong> <strong>modifier</strong>, which enables the <strong>free-spacing</strong> regex mode !</p>
<p dir="auto">So, <strong>copy/paste</strong> the <strong>search</strong> regex, below, in the <strong>Find what:</strong> zone, with, of course the <strong>two</strong> options <strong><code>Regular expression</code></strong> and <strong><code>Wrap around</code></strong> <strong>ticked</strong></p>
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">The <strong><code>\R</code></strong> syntax does <strong>not</strong> work in <strong>Free-spacing</strong> mode. So, you must write <strong><code>\r\n</code></strong> ( or <strong><code>\n</code></strong> if <strong>Unix</strong> files )</p>
</li>
<li>
<p dir="auto">In <strong>Free-spacing</strong> mode :</p>
<ul>
<li>
<p dir="auto">The <strong><code>#</code></strong> is the <strong>comment-line</strong> symbol. To use it, <strong>literally</strong>, simply write <strong><code>\#</code></strong></p>
</li>
<li>
<p dir="auto">The <strong><code>space</code></strong> character is <strong>not</strong> taken in account. To use it, <strong>literally</strong>, simply write <strong><code>\x20</code></strong> or <strong><code>[ ]</code></strong></p>
</li>
</ul>
</li>
<li>
<p dir="auto">However, when using the <strong><code>\Q.......\E</code></strong> <strong>syntax</strong>, either, the <strong><code>#</code></strong> and the <strong><code>space</code></strong> symbols are searched, as <strong>literals</strong> !</p>
</li>
</ul>
<p dir="auto">So, your <strong>multi-lines</strong> search regex could be, as below :</p>
<pre><code class="language-z">(?x)
(?-is)
^(
.*\Q&lt;font color="#ffff00"&gt;Sync by honeybunny - corrected by chamallow35&lt;/font&gt;\E.*|
.*\Q&lt;font color="#ffff00"&gt;www.Addic7ed.Com&lt;/font&gt;\E.*|
.*\QSync by yyets.net - corrected by chamallow35\E.*|
.*\Qwww.addic7ed.com\E.*|
.*\QPlease rate this subtitle at www.osdb.link/6hdjt\E.*|
.*\QSync &amp; corrections by\E.*|
.*\QPlease rate this subtitle\E.*|
.*\Q== sync, corrected by &lt;font color="#00FF00"&gt;elderman&lt;/font&gt; ==\E.*|
.*\Q&lt;font color="#00FFFF"&gt;@elder_man\E.*|
.*\Q&lt;font color="#00FFFF"&gt;@elder_man&lt;/font&gt; \E.*|
.*\QWWW.MY-SUBS.COM\E.*|
.*\QAdvertise your product or brand here\E.*|
.*\Qcontact www.OpenSubtitles.org today\E.*|
.*\QAmericasCardroom.com brings poker back\E.*|
.*\QMillion Dollar Sunday Tournament every Sunday\E.*|
.*\QSynced &amp; corrected by\E.*|
.*\QSynced and corrected by Octavia\E.*|
.*\QHelp other users to choose the best subtitles\E.*
)\r\n
</code></pre>
<p dir="auto"><strong>Remarks</strong> :</p>
<ul>
<li>
<p dir="auto">The <strong>entire</strong> search <strong>selection</strong> must <strong>not</strong> exceed <strong><code>2,046</code></strong> characters</p>
</li>
<li>
<p dir="auto">Unfortunately, the <strong>multi-lines</strong> replacement is <strong>NOT</strong> allowed, with our <strong>N++</strong> regex engine !</p>
</li>
</ul>
<p dir="auto">Et voilà !</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34092</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34092</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 11 Aug 2018 13:36:15 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sat, 11 Aug 2018 04:19:50 GMT]]></title><description><![CDATA[<p dir="auto">The following regex will get every one of those lines and it doesn’t care about the case of the character.</p>
<p dir="auto"><code>(?i)^.*?(&lt;font|sync.*?correct|www\.|help other.*?subtitle|please rate|advertise your|\.com|million dollar).*?\R</code></p>
<p dir="auto">So the search is an ‘insensitive’ search, it doesn’t care whether it’s an <code>a</code> or an <code>A</code>. So first off that would save you looking for ‘WWW.’ and ‘www.’ with 2 sub expressions.</p>
<p dir="auto">You see, there isn’t a need to type every single line you need to search for individually. If you tried you would quickly find you exceeded the limit of the regex allowed. My example identifies a complete line so long as it has the characters defined within each sub expression. They are shown between the ‘|’ characters.</p>
<p dir="auto">As a couple of the lines are very similar to possible dialogue I’ve made the sub expression look for 2 words with ‘something’ between them. I don’t care what the ‘something’ is, only that the 2 words appear on the same line. This may also be something you wish to try.</p>
<p dir="auto">The only issue with my example is that it will NOT grab the very last line if that is one of the lines you want. That’s because the last line doesn’t finish on a ‘\R’. I don’t think that would be a problem though, these ‘advertising’ lines would generally be in the first 100 or so lines of each subtitle file I think.</p>
<p dir="auto">The last 3 tests (<code>advertise your</code>, <code>\.com</code> and <code>million dollar</code>) might potentially occur within dialogue, so you may want to expand on those, but you still should not need to include the WHOLE line.</p>
<p dir="auto">As to why you expression didn’t work, I found it hard to read, far too much text. I just found it easier to do an example for you, maybe also because I think you are trying too hard to identify the lines. Regex is all about trying to bunch groups/strings of characters into neat buckets, that’s where it’s power lies. In your case you’re removing most of that power and trying to search for each unique line individually.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34088</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34088</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sat, 11 Aug 2018 04:19:50 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sat, 11 Aug 2018 01:27:53 GMT]]></title><description><![CDATA[<p dir="auto">OK.  Many thanks again.  And I DID read that documentation.  It explained a lot, but I didn’t <em>see</em> an answer to this:<br />
I’ve got the following regex.</p>
<p dir="auto">(?-is)^(.<em>\Q&lt;font color=“#ffff00”&gt;Sync by honeybunny - corrected by chamallow35&lt;/font&gt;\E.</em>|.<em>\Q&lt;font color=“#ffff00”&gt;<a href="http://www.Addic7ed.Com" rel="nofollow ugc">www.Addic7ed.Com</a>&lt;/font&gt;\E.</em>|.<em>\QSync by <a href="http://yyets.net" rel="nofollow ugc">yyets.net</a> - corrected by chamallow35\E.</em>|.<em>\Qwww.addic7ed.com\E.</em>|.<em>\QPlease rate this subtitle at www.osdb.link/6hdjt\E.</em>|.<em>\QSync &amp; corrections by\E.</em>|.<em><a href="http://www.addic7ed.com" rel="nofollow ugc">www.addic7ed.com</a>\E.</em>|.<em>\QPlease rate this subtitle\E.</em>|.<em>\Q== sync, corrected by &lt;font color=“#00FF00”&gt;elderman&lt;/font&gt; ==\E.</em>|.<em>\Q &lt;font color=“#00FFFF”&gt;@elder_man\E.</em>|.<em>\Q&lt;font color=“#00FFFF”&gt;@elder_man&lt;/font&gt;										\E.</em>|.<em>\QWWW.MY-SUBS.COM\E.</em>|.<em>\QAdvertise your product or brand here\E.</em>|.<em>\Qcontact <a href="http://www.OpenSubtitles.org" rel="nofollow ugc">www.OpenSubtitles.org</a> today\E.</em>|.<em>\QAmericasCardroom.com brings poker back\E.</em>|.<em>\QMillion Dollar Sunday Tournament every Sunday\E.</em>|.<em>\QSynced &amp; corrected by\E.</em>|.<em>\QSynced and corrected by Octavia\E.</em>|.<em>\QHelp other users to choose the best subtitles\E.</em>)\R</p>
<p dir="auto">It works, but since the list of lines I’d like to remove grows, for the sake of simplicity I’d like to use this regex - it has the same expressions but the lines are separate.  And reason that wouldn’t work?</p>
<p dir="auto">(?-is)^(.<em>\Q<br />
&lt;font color=“#ffff00”&gt;Sync by honeybunny - corrected by chamallow35&lt;/font&gt;\E.</em>|.<em>\Q<br />
&lt;font color=“#ffff00”&gt;<a href="http://www.Addic7ed.Com" rel="nofollow ugc">www.Addic7ed.Com</a>&lt;/font&gt;\E.</em>|.<em>\Q<br />
Sync by <a href="http://yyets.net" rel="nofollow ugc">yyets.net</a> - corrected by chamallow35\E.</em>|.<em>\Q<br />
<a href="http://www.addic7ed.com" rel="nofollow ugc">www.addic7ed.com</a>\E.</em>|.<em>\Q<br />
Please rate this subtitle at www.osdb.link/6hdjt\E.</em>|.<em>\Q<br />
Sync &amp; corrections by\E.</em>|.\Q*<br />
<a href="http://www.addic7ed.com" rel="nofollow ugc">www.addic7ed.com</a>\E.<em>|.</em>\Q<br />
Please rate this subtitle\E.<em>|.</em>\Q<br />
== sync, corrected by &lt;font color=“#00FF00”&gt;elderman&lt;/font&gt; ==\E.<em>|.</em>\Q<br />
&lt;font color=“#00FFFF”&gt;@elder_man\E.<em>|.</em>\Q<br />
&lt;font color=“#00FFFF”&gt;@elder_man&lt;/font&gt;										\E.<em>|.</em>\Q<br />
<a href="http://WWW.MY-SUBS.COM" rel="nofollow ugc">WWW.MY-SUBS.COM</a>\E.<em>|.</em>\Q<br />
Advertise your product or brand here\E.<em>|.</em>\Q<br />
contact <a href="http://www.OpenSubtitles.org" rel="nofollow ugc">www.OpenSubtitles.org</a> today\E.<em>|.</em>\Q<br />
<a href="http://AmericasCardroom.com" rel="nofollow ugc">AmericasCardroom.com</a> brings poker back\E.<em>|.</em>\Q<br />
Million Dollar Sunday Tournament every Sunday\E.<em>|.</em>\Q<br />
Synced &amp; corrected by\E.<em>|.</em>\Q<br />
Synced and corrected by Octavia\E.<em>|.</em>\Q<br />
Help other users to choose the best subtitles\E.*)\R</p>
<p dir="auto">That way I could easily scan to see if a line already existed and if not just put it in before the last line followed by a macro for  \E .<em>|.</em>\Q</p>
<p dir="auto">Thanks</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34085</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34085</guid><dc:creator><![CDATA[Steve Wilson]]></dc:creator><pubDate>Sat, 11 Aug 2018 01:27:53 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sun, 05 Aug 2018 21:08:38 GMT]]></title><description><![CDATA[<p dir="auto">Many Many thanks.  I’ve managed to remove a few hundred bothersome lines from a few hundred srt files.  Much faster than doing it one by one.</p>
<p dir="auto">I DO appreciate it.</p>
<p dir="auto">Steve</p>
]]></description><link>https://community.notepad-plus-plus.org/post/33972</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33972</guid><dc:creator><![CDATA[Steve Wilson]]></dc:creator><pubDate>Sun, 05 Aug 2018 21:08:38 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sun, 05 Aug 2018 20:16:00 GMT]]></title><description><![CDATA[<p dir="auto">To remove the 6 lines in your example the following regex would work.<br />
Find what: <code>^((?|&lt;font color|Sync by|Please rate|Help other|www.).+\R)</code><br />
Replace with: empty line here</p>
<p dir="auto">The search mode is regular expression and wrap around is ticked.</p>
<p dir="auto">Note that I haven’t included the complete line as I think the strings I’m searching for are unique enough. The <code>.+\R</code> sequence at the end means as long as it starts with one of the strings, also grab the remainder of the line. The <code>^</code> at the start makes sure we are starting a search at the start of a line. Thus if these strings are NOT at the start of the line, they will not be removed.</p>
<p dir="auto">The regex includes a pipe character between the different strings (<code>|</code>), this allows the regexe to look for different strings all within the one expression, so you would only need to run it once to get all those alternatives removed. You can extend the regex by adding more pipe characters and other strings to search for.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/33971</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33971</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sun, 05 Aug 2018 20:16:00 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sun, 05 Aug 2018 20:25:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/steve-wilson" aria-label="Profile: steve-wilson">@<bdi>steve-wilson</bdi></a>, and <strong>All</strong>,</p>
<p dir="auto">Very <strong>sorry</strong>, because we posted, rather simultaneously :-((</p>
<p dir="auto">Your <strong>last</strong> post goes towards a <strong>completely</strong> different direction ! The syntax, that you described, <strong>cannot</strong> be used in that form !! The regex would be quite <strong>invalid</strong> :-((</p>
<p dir="auto">So, <strong>first</strong>, are you searching these <strong><code>six</code></strong> sentences, below, with that <strong>exact</strong> syntax ?</p>
<pre><code class="language-diff">&lt;font color="#ffff00"&gt;Sync by honeybunny - corrected by chamallow35&lt;/font&gt;
&lt;font color="#ffff00"&gt;www.Addic7ed.Com&lt;/font&gt;
Sync by yyets.net - corrected by chamallow35
www.addic7ed.com
Please rate this subtitle at www.osdb.link/6hdjt
Help other users to choose the best subtitles
</code></pre>
<p dir="auto">I mean, could it be that, sometimes, you get lines with <strong><code>chamallow73</code></strong> instead of <strong><code>chamallow35</code></strong>, OR these <strong><code>six</code></strong> lines <strong>never</strong> change, in <strong>all</strong> your files ?</p>
<hr />
<p dir="auto">If these <strong><code>6</code></strong> lines have a <strong>fix</strong> form, the <strong>generic</strong> regex, to use, is :</p>
<p dir="auto">SEARCH <strong><code>(?-is)^(.*\Q...Line 1 Contents...\E.*|.*\Q...Line 2 Contents...\E.*|.*\Q...Line 3 Contents...\E.*|..........|.*\Q...Line 6 Contents...\E.*)\R</code></strong></p>
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto"><strong><code>...Line #n Contents...</code></strong> represents any the <strong>exact</strong> part, of the  <strong><code>nth</code></strong> line, what you want to <strong>search</strong></p>
</li>
<li>
<p dir="auto">The <strong><code>\Q</code></strong> and <strong><code>\E</code></strong> <strong>escaped</strong> sequences ensure you that <strong>any text</strong> placed between these <strong>two</strong> boundaries, is taken, <strong>literally</strong></p>
</li>
<li>
<p dir="auto">The <strong><code>|</code></strong> symbol is a regex symbol to <strong>separate</strong> different <strong>alternatives</strong> to search, <strong>simultaneously</strong></p>
</li>
<li>
<p dir="auto">The <strong><code>.*</code></strong> syntaxes, located, before <strong><code>\Q</code></strong> and after <strong><code>\E</code></strong> are the areas, possibly <strong>empty</strong>, located <strong>before</strong> and <strong>after</strong> your different <strong>sentences</strong> to search. Note that, if a <strong>sentence</strong> represents <strong>all</strong> the contents of a line, you may <strong>suppress</strong> these <strong><code>.*</code></strong> syntaxes, in the <strong>corresponding</strong> alternative</p>
</li>
<li>
<p dir="auto">Finally, any possible <strong>alternative</strong>, between <strong>parentheses</strong>, must begin a line ( <strong><code>^</code></strong> ) and ends with its <strong>line-break</strong> characters ( <strong><code>\R</code></strong> )</p>
</li>
</ul>
<hr />
<p dir="auto">If we apply this <strong>generic</strong> regex to your <strong>real</strong> example, we get the following regex :</p>
<p dir="auto"><strong><code>(?-is)^(.*\Q&lt;font color="#ffff00"&gt;Sync by honeybunny - corrected by chamallow35&lt;/font&gt;\E.*|.*\Q&lt;font color="#ffff00"&gt;www.Addic7ed.Com&lt;/font&gt;\E.*|.*\QSync by yyets.net - corrected by chamallow35\E.*|.*\Qwww.addic7ed.com\E.*|.*\QPlease rate this subtitle at www.osdb.link/6hdjt\E.*|.*\QHelp other users to choose the best subtitles\E.*)\R</code></strong></p>
<p dir="auto">Et voilà :-))</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> :</p>
<p dir="auto">I strongly advice you to read this <strong>FAQ</strong> post, on regexes, below :</p>
<p dir="auto"><a href="https://notepad-plus-plus.org/community/topic/15765/faq-desk-where-to-find-regex-documentation/1" rel="nofollow ugc">https://notepad-plus-plus.org/community/topic/15765/faq-desk-where-to-find-regex-documentation/1</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/33970</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33970</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 05 Aug 2018 20:25:20 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sun, 05 Aug 2018 19:55:56 GMT]]></title><description><![CDATA[<p dir="auto">I’ll quickly wade in here.<br />
Of the examples provided and knowing that the subtitle files are for movies I’d suggest you can group some of the lines you wish to remove. For example it’s very unlikely some dialogue would include <code>www.</code> or <code>&lt;font color</code> or even <code>Sync by</code>. So in effect you may not need to actually write out the lines in full. you just need enough information to uniquely identify the lines you want to remove.</p>
<p dir="auto">May I also suggest you combine ALL the files together, order them and remove duplicates. Look at what’s left. This could quickly identify what you’re trying to remove. Then using that information you get a regex to run over the original files.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/33969</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33969</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sun, 05 Aug 2018 19:55:56 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sun, 05 Aug 2018 19:48:21 GMT]]></title><description><![CDATA[<p dir="auto">I REALLY do appreciate all the time you’ve put in here.  I’m just not getting it.  I’m going to need to input at least a dozen lines that I want gone, but if you could show me an example of a regex to remove the following six lines, it’d be terribly helpful.</p>
<p dir="auto">&lt;font color=“#ffff00”&gt;Sync by honeybunny - corrected by chamallow35&lt;/font&gt;<br />
&lt;font color=“#ffff00”&gt;<a href="http://www.Addic7ed.Com" rel="nofollow ugc">www.Addic7ed.Com</a>&lt;/font&gt;<br />
Sync by <a href="http://yyets.net" rel="nofollow ugc">yyets.net</a> - corrected by chamallow35<br />
<a href="http://www.addic7ed.com" rel="nofollow ugc">www.addic7ed.com</a><br />
Please rate this subtitle at www.osdb.link/6hdjt<br />
Help other users to choose the best subtitles</p>
<p dir="auto">I DO appreciate it.  I’m just not getting it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/33968</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33968</guid><dc:creator><![CDATA[Steve Wilson]]></dc:creator><pubDate>Sun, 05 Aug 2018 19:48:21 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sun, 05 Aug 2018 19:19:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/steve-wilson" aria-label="Profile: steve-wilson">@<bdi>steve-wilson</bdi></a>,</p>
<p dir="auto">Ah, yes !  Of course, if you <strong>already</strong> placed strings, like <strong><code>First line to remove</code></strong> or <strong><code>Second line to remove</code></strong>…, in your files, just change my <strong>previous</strong> regex, as below :</p>
<p dir="auto"><strong><code>(?-is)^.+\[.*line to remove\].*\R</code></strong></p>
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">The modifiers <strong><code>(?-is)</code></strong> were explained <strong>previously</strong></p>
</li>
<li>
<p dir="auto">Then the regex matches, from <strong>beginning</strong> of line ( <strong><code>^</code></strong> ), any <strong>non-empty</strong> range of <strong>standard</strong> characters ( <strong><code>.+</code></strong> ), ending with an <strong>opening square bracket</strong> symbol ( <strong><code>\[</code></strong> )</p>
</li>
<li>
<p dir="auto">Then matching any range, possibly <strong>empty</strong>, of <strong>standard</strong> characters ( <strong><code>.*</code></strong>), ending with the string <strong><code>line to remove</code></strong>, with that <strong>exact</strong> case, and the <strong>ending square bracket</strong> symbol ( <strong><code>\]</code></strong> )</p>
</li>
<li>
<p dir="auto">And, finally, matching any <strong>remaining</strong> range of characters, possibly <strong>empty</strong>, of the <strong>current</strong> line ( <strong><code>.*</code></strong> ) , along with its <strong>End of Line</strong> characters ( <strong><code>\R</code></strong> ), which may be <strong><code>\r\n</code></strong> for <strong>Windows</strong> files, <strong><code>\n</code></strong> for <strong>Unix</strong> files or <strong><code>\r</code></strong> for <strong>Macintosh</strong> files</p>
</li>
<li>
<p dir="auto">And, as the <strong>Replacement</strong> field is <strong><code>empty,</code></strong> the <strong>complete</strong> matched line, with its <strong>line-break</strong>, is, thus, <strong>deleted</strong></p>
</li>
</ul>
<p dir="auto"><strong>Remarks</strong> :</p>
<ul>
<li>
<p dir="auto">The <strong>square bracket</strong> symbols, being <strong>regex</strong> symbols, must be <strong>escaped</strong> to be considered as <strong>literals</strong> !</p>
</li>
<li>
<p dir="auto">Any syntax <strong><code>[...... line to remove]</code></strong>, whatever text is, <strong>between</strong> the <strong><code>[</code></strong> symbol and the string <strong><code>line to remove</code></strong> will be taken in <strong>account</strong> by the regex and the <strong>corresponding</strong> line selected for <strong>deletion</strong></p>
</li>
</ul>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/33967</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33967</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 05 Aug 2018 19:19:28 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sun, 05 Aug 2018 19:14:50 GMT]]></title><description><![CDATA[<p dir="auto">So, if I want to get rid of each of the following lines that may be contained<br />
"<br />
&lt;font color=“#ffff00”&gt;Sync by honeybunny - corrected by chamallow35&lt;/font&gt;<br />
&lt;font color=“#ffff00”&gt;<a href="http://www.Addic7ed.Com" rel="nofollow ugc">www.Addic7ed.Com</a>&lt;/font&gt;<br />
Sync by <a href="http://yyets.net" rel="nofollow ugc">yyets.net</a> - corrected by chamallow35<br />
<a href="http://www.addic7ed.com" rel="nofollow ugc">www.addic7ed.com</a><br />
Please rate this subtitle at www.osdb.link/6hdjt<br />
Help other users to choose the best subtitles<br />
"<br />
could I just use the regex (?-is)^.+&lt;font color=“#ffff00”&gt;Sync by honeybunny - corrected by chamallow35&lt;/font&gt;\&lt;font color=“#ffff00”&gt;<a href="http://www.Addic7ed.Com" rel="nofollow ugc">www.Addic7ed.Com</a>&lt;/font&gt;\Sync by <a href="http://yyets.net" rel="nofollow ugc">yyets.net</a> - corrected by chamallow35\www.addic7ed.com\Please rate this subtitle at www.osdb.link/6hdjt\Help other users to choose the best subtitles.*\R</p>
]]></description><link>https://community.notepad-plus-plus.org/post/33966</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33966</guid><dc:creator><![CDATA[Steve Wilson]]></dc:creator><pubDate>Sun, 05 Aug 2018 19:14:50 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sun, 05 Aug 2018 18:42:20 GMT]]></title><description><![CDATA[<p dir="auto">Could I use the regex “(?-is)^.+[first line to remove][second line to remove].*\R” (etc on the lines to remove?  There are probably at least a dozen or more lines I’m trying to remove from a lot of files.  I just want to avoid having to do it one file (or one line) at a time.</p>
<p dir="auto">And, many thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/33965</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33965</guid><dc:creator><![CDATA[Steve Wilson]]></dc:creator><pubDate>Sun, 05 Aug 2018 18:42:20 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sun, 05 Aug 2018 18:34:50 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/steve-wilson" aria-label="Profile: steve-wilson">@<bdi>steve-wilson</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/scott-sumner" aria-label="Profile: scott-sumner">@<bdi>scott-sumner</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: terry-r">@<bdi>terry-r</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Many thanks, <strong>Alan</strong> ! Oh my god, so simple ! Then, <strong>Steve</strong>, actually, you would like to get rid of <strong>all</strong> lines containing the <strong>literal</strong> string <strong><code>[line to remove]</code></strong>, wouldn’t you ? Is it, really, the <strong>single rule</strong> needed for the regex ?</p>
<p dir="auto">If so, of course, the <strong>Alan</strong>’s regex works <strong>fine</strong>. You could, also use, the regex <strong><code>(?-is)^.+\[line to remove\].*\R</code></strong>, which :</p>
<ul>
<li>
<p dir="auto">Catches <strong>single-line</strong> text, only, due to the <strong><code>(?-s)</code></strong> modifier</p>
</li>
<li>
<p dir="auto">Matches the <strong>literal</strong> string <strong><code>[line to remove]</code></strong>, with that <strong>exact</strong> case, due to the <strong><code>(?-i)</code></strong> modifier</p>
</li>
</ul>
<p dir="auto">Remember that the <strong>Replace with:</strong> zone remains <strong><code>Empty</code></strong></p>
<p dir="auto">Cheers</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/33964</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33964</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 05 Aug 2018 18:34:50 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sun, 05 Aug 2018 18:07:19 GMT]]></title><description><![CDATA[<p dir="auto">I would go with a find field of <code>^.+?\[line to remove\].*?\R</code> and a replace box that is totally empty.  That should eliminate all of the desired to be deleted lines.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/33961</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33961</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 05 Aug 2018 18:07:19 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sun, 05 Aug 2018 17:45:11 GMT]]></title><description><![CDATA[<p dir="auto">No.  I’m simply trying to get rid of the lines I’ve marked in that example with [line to remove] at the end of the line.  &lt;sigh&gt;  I’m not making myself clear.  What I’m trying to do is, I think, really simple.  I simply want to remove multiple lines of text from within files without having to remove them one at a time.</p>
<p dir="auto">i said I wanted to get rid of line 3 simply to indicate that it was the third line of text that I was attempting to remove.  Not the third and fourth, fifth, etc.  Multiple lines containing specific text strings.  In my last example I indicated those lines by appending [line to be removed] to the end of the line/string that I was wanting to be gone.</p>
<p dir="auto">Thanks</p>
]]></description><link>https://community.notepad-plus-plus.org/post/33960</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33960</guid><dc:creator><![CDATA[Steve Wilson]]></dc:creator><pubDate>Sun, 05 Aug 2018 17:45:11 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sun, 05 Aug 2018 17:34:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/steve-wilson" aria-label="Profile: steve-wilson">@<bdi>steve-wilson</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/scott-sumner" aria-label="Profile: scott-sumner">@<bdi>scott-sumner</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: terry-r">@<bdi>terry-r</bdi></a> and <strong>All</strong>,</p>
<p dir="auto"><strong>Thanks</strong> for your <strong>last</strong> post which gives us <strong>useful</strong> information. However there is still a point <strong>unclear</strong> !</p>
<p dir="auto">You previously said that you wanted to get <strong>rid</strong> of line <strong><code>3</code></strong>. But, from your <strong>last</strong> post, it seems that your want to get rid, also, of  <strong>all</strong> lines, located <strong>after</strong> the line <strong><code>3</code></strong> ! Am I <strong>right</strong> about it ?</p>
<hr />
<p dir="auto">Anyway, the <strong>regex</strong> S/R, below, supposes that you want to get rid of <strong>all</strong> lines :</p>
<ul>
<li>Containing the <strong><code>Sync by</code></strong> string, with that <strong>exact</strong> case</li>
</ul>
<p dir="auto">OR</p>
<ul>
<li>Containing the string <strong><code>www.</code></strong>, of an <strong>Internet</strong> address</li>
</ul>
<p dir="auto">as well as <strong>any subsequent</strong> lines, until a <strong><code>true empty</code></strong> line</p>
<hr />
<p dir="auto">So, assuming your example, placed in a <strong>N++ new</strong> tab :</p>
<pre><code class="language-diff">1
00:00:06,000 --&gt; 00:00:12,074
&lt;font color="#ffff00"&gt;Sync by honeybunny - corrected by chamallow35&lt;/font&gt; [line to remove]
&lt;font color="#ffff00"&gt;www.Addic7ed.Com&lt;/font&gt; [line to remove]

2
00:00:12,920 --&gt; 00:00:14,420
Now we’re talking. Yeah, please.

3
00:00:15,870 --&gt; 00:00:16,980
Right here, baby. Aw…

4
00:00:20,580 --&gt; 00:00:21,480
Over here.

5
00:00:21,480 --&gt; 00:00:23,140
Over here, yeah, yeah.

6
00:00:32,020 --&gt; 00:00:32,990
Over here, Kelli.

7
00:00:33,990 --&gt; 00:00:35,810
Sync by yyets.net - corrected by chamallow35 [line to remove]
www.addic7ed.com [line to remove]

8
00:00:36,010 --&gt; 00:00:38,390
Over here, Kelli. You
look beautiful. Right here.

9
00:00:38,390 --&gt; 00:00:40,190
Please rate this subtitle at www.osdb.link/6hdjt [line to remove]
Help other users to choose the best subtitles [line to remove]


10
00:00:44,180 --&gt; 00:00:45,170
Bupkes.
</code></pre>
<ul>
<li>
<p dir="auto">Open the <strong>Replace</strong> dialog  ( <strong><code>CTRL + H</code></strong> )</p>
</li>
<li>
<p dir="auto">Type, or <strong>copy/paste</strong> the regex <strong><code>(?-s)^.*\b(Sync by\x20|www\.).*\R(.+\R)+</code></strong> in the <strong>Find what:</strong> zone</p>
</li>
<li>
<p dir="auto">Leave the <strong>Replace with:</strong> zone <strong><code>EMPTY</code></strong></p>
</li>
<li>
<p dir="auto">Ticked the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search mode</p>
</li>
<li>
<p dir="auto">Click <strong>once</strong>, on the <strong><code>Replace All</code></strong> button</p>
</li>
</ul>
<p dir="auto">You should obtain the <strong>expected</strong> text :</p>
<pre><code class="language-diff">1
00:00:06,000 --&gt; 00:00:12,074

2
00:00:12,920 --&gt; 00:00:14,420
Now we’re talking. Yeah, please.

3
00:00:15,870 --&gt; 00:00:16,980
Right here, baby. Aw…

4
00:00:20,580 --&gt; 00:00:21,480
Over here.

5
00:00:21,480 --&gt; 00:00:23,140
Over here, yeah, yeah.

6
00:00:32,020 --&gt; 00:00:32,990
Over here, Kelli.

7
00:00:33,990 --&gt; 00:00:35,810

8
00:00:36,010 --&gt; 00:00:38,390
Over here, Kelli. You
look beautiful. Right here.

9
00:00:38,390 --&gt; 00:00:40,190


10
00:00:44,180 --&gt; 00:00:45,170
Bupkes.
</code></pre>
<p dir="auto">Voilà !</p>
<hr />
<p dir="auto">If we’re not far from the <strong>goal</strong>, I could, next time, explain my <strong>search</strong> regex !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/33959</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33959</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 05 Aug 2018 17:34:46 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sun, 05 Aug 2018 14:45:06 GMT]]></title><description><![CDATA[<h2>Okay, I think I’m making my request/explanation confusing and over-complicated.  Say I have the following file:</h2>
<p dir="auto">1<br />
00:00:06,000 --&gt; 00:00:12,074<br />
&lt;font color=“#ffff00”&gt;Sync by honeybunny - corrected by chamallow35&lt;/font&gt; [line to remove]<br />
&lt;font color=“#ffff00”&gt;<a href="http://www.Addic7ed.Com" rel="nofollow ugc">www.Addic7ed.Com</a>&lt;/font&gt; [line to remove]</p>
<p dir="auto">2<br />
00:00:12,920 --&gt; 00:00:14,420<br />
Now we’re talking. Yeah, please.</p>
<p dir="auto">3<br />
00:00:15,870 --&gt; 00:00:16,980<br />
Right here, baby. Aw…</p>
<p dir="auto">4<br />
00:00:20,580 --&gt; 00:00:21,480<br />
Over here.</p>
<p dir="auto">5<br />
00:00:21,480 --&gt; 00:00:23,140<br />
Over here, yeah, yeah.</p>
<p dir="auto">6<br />
00:00:32,020 --&gt; 00:00:32,990<br />
Over here, Kelli.</p>
<p dir="auto">7<br />
00:00:33,990 --&gt; 00:00:35,810<br />
Sync by <a href="http://yyets.net" rel="nofollow ugc">yyets.net</a> - corrected by chamallow35 [line to remove]<br />
<a href="http://www.addic7ed.com" rel="nofollow ugc">www.addic7ed.com</a> [line to remove]</p>
<p dir="auto">8<br />
00:00:36,010 --&gt; 00:00:38,390<br />
Over here, Kelli. You<br />
look beautiful. Right here.</p>
<h2>9<br />
00:00:38,390 --&gt; 00:00:40,190<br />
Please rate this subtitle at www.osdb.link/6hdjt [line to remove]<br />
Help other users to choose the best subtitles [line to remove]</h2>
<p dir="auto">And in that file I’m trying to remove just the lines that I’ve marked with [line to remove].</p>
<p dir="auto">I’m just trying to figure out what I would put in the “Find what” box, the “Replace with” box and what I would have the “Search mode” set to.  I can’t figure it out.</p>
<p dir="auto">Thanks</p>
<p dir="auto">10<br />
00:00:44,180 --&gt; 00:00:45,170<br />
Bupkes.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/33958</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33958</guid><dc:creator><![CDATA[Steve Wilson]]></dc:creator><pubDate>Sun, 05 Aug 2018 14:45:06 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sun, 05 Aug 2018 13:49:57 GMT]]></title><description><![CDATA[<p dir="auto">Sorry.  I’ve got no idea what caused the large font.  I assure you I didn’t do it on purpose.</p>
<p dir="auto">But thanks again!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/33956</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33956</guid><dc:creator><![CDATA[Steve Wilson]]></dc:creator><pubDate>Sun, 05 Aug 2018 13:49:57 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sun, 05 Aug 2018 13:33:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/steve-wilson" aria-label="Profile: Steve-Wilson">@<bdi>Steve-Wilson</bdi></a></p>
<p dir="auto">It’s cool.  The large font didn’t help my understanding (still quite confused), but maybe someone else will jump in.  I’m out.  Cheers, bro.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/33954</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33954</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Sun, 05 Aug 2018 13:33:55 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sun, 05 Aug 2018 13:22:01 GMT]]></title><description><![CDATA[<h2>I’m not sure what you’re talking about here.  I used that test file just to simplify and show what I was trying to do.  I’m NEVER trying to remove characters or parts of a line.  I’m trying to remove lines that may be in some files and may not be in other files.  Complete lines.  The files are subtitles.  For instance, a directory containing 200 subtitles.  SOME of these subtitles contain the lines.  I’d want to keep lines 1 and 2, but I’d want to get rid of line 3.</h2>
<h2>6<br />
00:01:42,614 --&gt; 00:01:52,950<br />
&lt;font color=“#ffff00”&gt;Sync by honeybunny - corrected by chamallow35&lt;/font&gt;</h2>
<h2>Other subtitle files might contain the lines</h2>
<h2>16<br />
00:01:22,611 --&gt; 00:01:32,611<br />
Sync by <a href="http://yyets.net" rel="nofollow ugc">yyets.net</a> - corrected by chamallow35</h2>
<p dir="auto">Again, I’d want to remove line 3 of that, but leave the other two lines.</p>
<p dir="auto">So all I’m looking for is a way to tell NP++ to remove<br />
&lt;font color=“#ffff00”&gt;Sync by honeybunny - corrected by chamallow35&lt;/font&gt;<br />
and<br />
Sync by <a href="http://yyets.net" rel="nofollow ugc">yyets.net</a> - corrected by chamallow35</p>
<p dir="auto">and any other COMPLETE lines unnecessary in the file without my having to search and replace one line at a time.  I’m NEVER trying to remove text from within a line.</p>
<p dir="auto">Thanks again</p>
]]></description><link>https://community.notepad-plus-plus.org/post/33953</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33953</guid><dc:creator><![CDATA[Steve Wilson]]></dc:creator><pubDate>Sun, 05 Aug 2018 13:22:01 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sun, 05 Aug 2018 12:52:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/steve-wilson" aria-label="Profile: Steve-Wilson">@<bdi>Steve-Wilson</bdi></a></p>
<blockquote>
<p dir="auto">I’m doing something wrong, but damned if I can figure out what.</p>
</blockquote>
<p dir="auto">You are doing a lot of things wrong…  :-)</p>
<p dir="auto">Say you had this text in a file:</p>
<pre><code class="language-z">abcdefghijklmnop
</code></pre>
<p dir="auto">What you are currently trying in your “for test purposes” data is the equivalent of using a <strong>Find what</strong> of <code>abcghi</code> on the above text…and wondering why it doesn’t match.</p>
<p dir="auto">We could give you something that would delete your desired lines in your sample text, but that would probably just elicit from you a “That’s great but the same technique doesn’t work on my real data”.</p>
<p dir="auto">So why don’t you cough up some real data and someone will probably help you do what you want…?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/33951</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33951</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Sun, 05 Aug 2018 12:52:19 GMT</pubDate></item><item><title><![CDATA[Reply to Finding multiple lines in multiple files and deleting just those lines on Sun, 05 Aug 2018 11:41:20 GMT]]></title><description><![CDATA[<p dir="auto">I’m probably not explaining myself very well.  I created a simple test file to try.  It was just</p>
<p dir="auto">this is line 1<br />
this is line 2<br />
this is line 3<br />
this is line 4</p>
<p dir="auto">Trying for test purposes to get rid of lines 1 and 3 I put “this is line 1 \n this is line 3” in the “Find what” box.  In the “Replace with” box I just clicked the mouse and hit the spacebar.  Then I clicked on "Replace in files.  I set search mode to regular expression and extended.  I tried with no spaces before and after the \n.  And I tried with using \n, instead of \n.  I’m doing something wrong, but damned if I can figure out what.</p>
<p dir="auto">Thanks again</p>
]]></description><link>https://community.notepad-plus-plus.org/post/33950</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33950</guid><dc:creator><![CDATA[Steve Wilson]]></dc:creator><pubDate>Sun, 05 Aug 2018 11:41:20 GMT</pubDate></item></channel></rss>