<?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[Replace all multiline text before first appearance of character in multiple files]]></title><description><![CDATA[<p dir="auto">I have found several variations on this question, but none that exactly match what I am trying to do. I am relatively new to Notepad++ and not familiar with the language (so please forgive my ignorance).</p>
<p dir="auto">I have thousands of text files from which that I need to delete all of the text from the start of the file until the first appearance of a tilde (~) character. The files contain numerous and inconsistent variations on the text that appears before that first ~. Some files may contain 10 lines of random text before the first ~ and others may contain only 3 lines. There is little consistency in what appears in the first n number of lines that I want to delete.  This needs to work with <strong>Find In Files</strong></p>
<p dir="auto">Examples:</p>
<p dir="auto">Line 1 Lorem Ipsum<br />
Line 2 Nonsense to throw away<br />
Line 3 ~ This is the first tilde that appears in this file. Keep it and whatever comes after it til the end of the file</p>
<p dir="auto">Line 1 Stuff to delete<br />
Line 2 Other stuff to delete<br />
Line 3 More stuff to delete<br />
Line 4 Keep deleting<br />
Line 5 ~ Keep everything on this line including the first character and everything in all subsequent lines</p>
<p dir="auto">Thanks in advance.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20306/replace-all-multiline-text-before-first-appearance-of-character-in-multiple-files</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 06:44:30 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20306.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Nov 2020 23:03:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Replace all multiline text before first appearance of character in multiple files on Fri, 13 Nov 2020 23:19:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/trey-hargrove-0" aria-label="Profile: Trey-Hargrove-0">@<bdi>Trey-Hargrove-0</bdi></a></p>
<p dir="auto">Fairly easy, however you’ll need to use Notepad++ 7.9.1 or later (earlier versions will not handle the <code>\A</code> construct correctly) to do this:</p>
<p dir="auto">Use <em>Replace in Files</em>.</p>
<p dir="auto">find: <code>\A(?s).*?~</code><br />
repl: <code>~</code></p>
<p dir="auto">Suggest making a backup of your whole fileset first; delete only after you’ve decided it works as intended.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59680</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59680</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 13 Nov 2020 23:19:29 GMT</pubDate></item></channel></rss>