<?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[Mark all .pdf files except zusammenfassung.pdf using RegEx]]></title><description><![CDATA[<p dir="auto">Hi there,</p>
<p dir="auto">i have exported a real large content file from Joomla with articles and fields using J2XML.<br />
Now i have to delte some unused stuff, wich works real good with Notepad++. But i really do not have much idea of the use of RegEx and i now have to mark all lines where a .pdf file is used bute i dont have to mark the lines where the filename zusammenfassung.pdf is used.</p>
<p dir="auto">Is there a way to do this with RegEx?</p>
<p dir="auto">Any help appreciated.</p>
<p dir="auto">Greets from Germany and a happy weekend to all of you,</p>
<p dir="auto">Andreas (Andy)</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24123/mark-all-pdf-files-except-zusammenfassung-pdf-using-regex</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 19:51:05 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24123.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 11 Feb 2023 13:09:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mark all .pdf files except zusammenfassung.pdf using RegEx on Mon, 13 Feb 2023 19:28:26 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/84083">Mark all .pdf files except zusammenfassung.pdf using RegEx</a>:</p>
<blockquote>
<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/andreas-soraru" aria-label="Profile: andreas-soraru">@<bdi>andreas-soraru</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">From your <strong>title</strong>, I would say :</p>
<ul>
<li>
<p dir="auto">Open your file in <strong>N++</strong></p>
</li>
<li>
<p dir="auto">Open the <strong>Mark</strong> dialog ( <strong><code>Ctrl + M</code></strong> )</p>
</li>
<li>
<p dir="auto"><strong>Untick</strong> all <strong>box</strong> options</p>
</li>
<li>
<p dir="auto">SEARCH <strong><code>(?xi-s) ^ (?! .* zusammenfassung.pdf ) .* \b \S+ \. pdf \b</code></strong></p>
</li>
<li>
<p dir="auto">Check the <strong><code>Bookmark line</code></strong> and the <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">Then, either :</p>
<ul>
<li>
<p dir="auto">Click on the <strong><code>Copy Marked Text</code></strong> button</p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Search &gt; Bookmark &gt; Copy Bookmarked Lines</code></strong></p>
</li>
</ul>
</li>
<li>
<p dir="auto">Open a <strong>new</strong> tab</p>
</li>
<li>
<p dir="auto"><strong>Paste</strong> the <strong><code>.pdf</code></strong> filenames or the <strong>complete</strong> lines in this <strong>new</strong> tab</p>
</li>
</ul>
<p dir="auto">Best Regards</p>
<p dir="auto">guy038</p>
</blockquote>
]]></description><link>https://community.notepad-plus-plus.org/post/84112</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84112</guid><dc:creator><![CDATA[datatraveller1]]></dc:creator><pubDate>Mon, 13 Feb 2023 19:28:26 GMT</pubDate></item><item><title><![CDATA[Reply to Mark all .pdf files except zusammenfassung.pdf using RegEx on Mon, 13 Feb 2023 09:53:11 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/andreas-soraru" aria-label="Profile: andreas-soraru">@<bdi>andreas-soraru</bdi></a>, <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">In my <strong>previous</strong> regex, I used the <strong><code>\S</code></strong> syntax to include the <strong>litteral dot</strong> as a possible character, in the <strong>filename</strong>. However, to be <strong>rigorous</strong>, I should have used this syntax :</p>
<pre><code class="language-diff">SEARCH  (?xi) zusammenfassung \. pdf (?= \s ) (*SKIP) (*F) | [!#$%&amp;'()+,-.;=@\\[\\]^`{}~\w]+ \. pdf (?= \s )
</code></pre>
<p dir="auto">As some characters are <strong>forbidden</strong> in <strong><code>Windows</code></strong> filenames  : <strong><code>\ / : * ? " &lt; &gt; |</code></strong></p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84096</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84096</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 13 Feb 2023 09:53:11 GMT</pubDate></item><item><title><![CDATA[Reply to Mark all .pdf files except zusammenfassung.pdf using RegEx on Sun, 12 Feb 2023 23:07:10 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/84093">Mark all .pdf files except zusammenfassung.pdf using RegEx</a>:</p>
<blockquote>
<p dir="auto">No need for the No single line modifier (?-s)</p>
</blockquote>
<p dir="auto">This is true.<br />
It is in mine because at first I did have a non-escaped <code>.</code> in it…but I changed where I was heading with it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84094</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84094</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 12 Feb 2023 23:07:10 GMT</pubDate></item><item><title><![CDATA[Reply to Mark all .pdf files except zusammenfassung.pdf using RegEx on Sun, 12 Feb 2023 22:52:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/andreas-soraru" aria-label="Profile: andreas-soraru">@<bdi>andreas-soraru</bdi></a>, <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">Ah… yes <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>. <strong>Excellent</strong> example of the power of <strong>backtracking control verbs</strong> ( <strong><code>(*SKIP) , (*F), ...</code></strong> ) !</p>
<p dir="auto">And I think that a <strong>final</strong> version could be :</p>
<p dir="auto">SEARCH <strong><code>(?xi) zusammenfassung \. pdf (?= \s ) (*SKIP) (*F) | \S+ \. pdf (?= \s )</code></strong></p>
<hr />
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">No need for the <strong>No single line</strong> modifier <strong><code>(?-s)</code></strong>, as this regex does <strong>not</strong> contain any regex <strong>dot</strong> character !</p>
</li>
<li>
<p dir="auto">I preferred to add the <strong><code>(?=\s)</code></strong> <strong>look-ahead</strong> structure, after the strings <strong><code>pdf</code></strong>, to be sure that we search for <strong>true</strong> <strong><code>PDF</code></strong> files</p>
</li>
</ul>
<hr />
<p dir="auto">You may <strong>test</strong> this <strong>new</strong> version against the text below :</p>
<pre><code class="language-diff">This is Test.PDF and TEST2.pdf files
Example.pdf : This one is OK
This line does NOT contain portable file name
NOT searched : bad.pdf---123
A file zusammenfassunge.pdf
The zusaMMENFASSung.pdf file
This is the Test.PDFTEST2.pdf file
The zusammenfassung.pdf---456 file
This is my last file.pdf
A special 123zusammenfassung.pdf456 file
Last.PDF True PDF file
</code></pre>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84093</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84093</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 12 Feb 2023 22:52:28 GMT</pubDate></item><item><title><![CDATA[Reply to Mark all .pdf files except zusammenfassung.pdf using RegEx on Sun, 12 Feb 2023 21:23:08 GMT]]></title><description><![CDATA[<p dir="auto">My first thought was this would be a good application of this technique:</p>
<p dir="auto"><code>What I DON’T want(*SKIP)(*F)|What I DO want</code></p>
<p dir="auto">This was discussed <a href="https://community.notepad-plus-plus.org/post/77575">HERE</a> and probably some other places, too.</p>
<p dir="auto">Anyway, for the current problem, try this:</p>
<p dir="auto">Find what: <code>(?-s)(?:zusammenfassung\.pdf(*SKIP)(*F)|\w+?\.pdf)</code><br />
Search mode: Regular expression</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84092</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84092</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 12 Feb 2023 21:23:08 GMT</pubDate></item><item><title><![CDATA[Reply to Mark all .pdf files except zusammenfassung.pdf using RegEx on Sun, 12 Feb 2023 13:39:53 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> Thanks a lot … that was exactly what i was looking for … without such good knowledge of RegEx i would never got that working. Thanks a lot, greets from Germany and a good day,</p>
<p dir="auto">Andreas (Andy)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84089</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84089</guid><dc:creator><![CDATA[Andreas Soraru]]></dc:creator><pubDate>Sun, 12 Feb 2023 13:39:53 GMT</pubDate></item><item><title><![CDATA[Reply to Mark all .pdf files except zusammenfassung.pdf using RegEx on Sat, 11 Feb 2023 20:12:00 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/andreas-soraru" aria-label="Profile: andreas-soraru">@<bdi>andreas-soraru</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">From your <strong>title</strong>, I would say :</p>
<ul>
<li>
<p dir="auto">Open your file in <strong>N++</strong></p>
</li>
<li>
<p dir="auto">Open the <strong>Mark</strong> dialog ( <strong><code>Ctrl + M</code></strong> )</p>
</li>
<li>
<p dir="auto"><strong>Untick</strong> all <strong>box</strong> options</p>
</li>
<li>
<p dir="auto">SEARCH <strong><code>(?xi-s) ^ (?! .* zusammenfassung.pdf ) .* \b \S+ \. pdf \b</code></strong></p>
</li>
<li>
<p dir="auto">Check the <strong><code>Bookmark line</code></strong> and the <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">Then, either :</p>
<ul>
<li>
<p dir="auto">Click on the <strong><code>Copy Marked Text</code></strong> button</p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Search &gt; Bookmark &gt; Copy Bookmarked Lines</code></strong></p>
</li>
</ul>
</li>
<li>
<p dir="auto">Open a <strong>new</strong> tab</p>
</li>
<li>
<p dir="auto"><strong>Paste</strong> the <strong><code>.pdf</code></strong> filenames or the <strong>complete</strong> lines in this <strong>new</strong> tab</p>
</li>
</ul>
<p dir="auto">Best Regards</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84083</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84083</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 11 Feb 2023 20:12:00 GMT</pubDate></item></channel></rss>