<?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[Open files that start with (or contain) a pattern]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">How can I configure Notepad++ to open files that start with a specific pattern?</p>
<p dir="auto">I have files that are all named starting with “Process_A”</p>
<p dir="auto">Process_A.e1234<br />
Process_A.o1234<br />
Process_A.e4567</p>
<p dir="auto">and so on</p>
<p dir="auto">Is there a way I can configure the “File Association” field to:</p>
<p dir="auto">[1] open files that start with a specific pattern (files starting with Process_A as outlined above)</p>
<p dir="auto">[2] open files that end with “.e\d+” (using perl like syntax here - i.e. files that end with dot followed by the letter e followed by a number")</p>
<p dir="auto">Thanks in advance,<br />
Anand</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16540/open-files-that-start-with-or-contain-a-pattern</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 11:30:35 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16540.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 31 Oct 2018 14:54:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Open files that start with (or contain) a pattern on Wed, 31 Oct 2018 16:51:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a> said:</p>
<blockquote>
<p dir="auto">… I can…“Open with notepad++” no matter the extension.</p>
</blockquote>
<p dir="auto">Amen–it’s what I do as well.  I’ve never really understood file extension association with something like Notepad++, so I don’t understand what all the usual hullabaloo is about (all the questions on this Community concerning it).  Sure, I understand file associations for something like .xlsx where it is ALWAYS going to be Excel that opens those files…but Notepad++ has no such equivalent.  <code>.txt</code> comes closest I guess, but still…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/35903</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/35903</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Wed, 31 Oct 2018 16:51:13 GMT</pubDate></item><item><title><![CDATA[Reply to Open files that start with (or contain) a pattern on Wed, 31 Oct 2018 15:50:24 GMT]]></title><description><![CDATA[<p dir="auto">I REALLY CANT ANSWER THAT ONE BUT I CAN TELL U THIS</p>
]]></description><link>https://community.notepad-plus-plus.org/post/35901</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/35901</guid><dc:creator><![CDATA[Donisha Jones]]></dc:creator><pubDate>Wed, 31 Oct 2018 15:50:24 GMT</pubDate></item><item><title><![CDATA[Reply to Open files that start with (or contain) a pattern on Wed, 31 Oct 2018 15:43:54 GMT]]></title><description><![CDATA[<p dir="auto">Windows file associations don’t work on patterns, they work on fixed extensions.</p>
<p dir="auto">Personally, I have a notepad++ association on the (windows-special) <code>*</code> HKCR entry (though not the default assocation, of course), so I can right click and “Open with notepad++” no matter the extension.</p>
<p dir="auto"><em>update</em>: added “windows-special” above.  In the registry’s HKCR, that <code>*</code> entry is not really doing a file globbing; it’s the windows registry notation for “all file types”.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/35900</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/35900</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 31 Oct 2018 15:43:54 GMT</pubDate></item><item><title><![CDATA[Reply to Open files that start with (or contain) a pattern on Wed, 31 Oct 2018 15:38:20 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Peter and Scott for the responses.</p>
<p dir="auto">In my case, I am “not” specifically looking to open all files at once.</p>
<p dir="auto">I just want to be able to configure Npp File association to be able to open files that start with a specific pattern (or contain a pattern).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/35899</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/35899</guid><dc:creator><![CDATA[tamuanand]]></dc:creator><pubDate>Wed, 31 Oct 2018 15:38:20 GMT</pubDate></item><item><title><![CDATA[Reply to Open files that start with (or contain) a pattern on Wed, 31 Oct 2018 15:35:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/13459">@tamuanand</a> ,</p>
<p dir="auto">If you’re going to invoke perl for me… :-)</p>
<pre><code>&gt;ls -latr
total 132
-rw-rw-rw-   1 Peter.Jones 0      0 2018-10-31 08:08 Process_A.e1234
-rw-rw-rw-   1 Peter.Jones 0      0 2018-10-31 08:08 Process_A.o1234
-rw-rw-rw-   1 Peter.Jones 0      0 2018-10-31 08:08 Process_A.e4567
-rw-rw-rw-   1 Peter.Jones 0      0 2018-10-31 08:09 pre.e1
-rw-rw-rw-   1 Peter.Jones 0      0 2018-10-31 08:09 pre.e12
-rw-rw-rw-   1 Peter.Jones 0      0 2018-10-31 08:09 pre.e123
-rw-rw-rw-   1 Peter.Jones 0      0 2018-10-31 08:09 pre.e1234
drw-rw-rw-   2 Peter.Jones 0   4096 2018-10-31 08:09 .
drw-rw-rw-  27 Peter.Jones 0 131072 2018-10-31 08:23 ..

&gt;perl -e "for(glob('Process_A*')){ system(qq(echo path/to/notepad++.exe $_)) }"
path/to/notepad++.exe Process_A.e1234
path/to/notepad++.exe Process_A.e4567
path/to/notepad++.exe Process_A.o1234

&gt;perl -e "for(glob('*.*')){ next unless /\.e\d+/; system(qq(echo path/to/notepad++.exe $_)) }"
path/to/notepad++.exe pre.e1
path/to/notepad++.exe pre.e12
path/to/notepad++.exe pre.e123
path/to/notepad++.exe pre.e1234
path/to/notepad++.exe Process_A.e1234
path/to/notepad++.exe Process_A.e4567
</code></pre>
<p dir="auto">All you have to do is remove the echo, and fix <code>path/to/notepad++.exe</code>, and those perl one-liners will do what you want. :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/35897</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/35897</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 31 Oct 2018 15:35:33 GMT</pubDate></item><item><title><![CDATA[Reply to Open files that start with (or contain) a pattern on Wed, 31 Oct 2018 15:11:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/13459">@tamuanand</a></p>
<p dir="auto">Hmmm…not really a Notepad++ question per se, so I won’t get too deep into it…but you could do something like this at a CMD prompt (or batch file):</p>
<h5>For [1]:</h5>
<p dir="auto"><code>for %f in (Process_A*) do echo %f</code></p>
<h5>For [2]:</h5>
<p dir="auto"><code>for %f in (*.e????) do echo %f</code></p>
<p dir="auto">where of course you replace <code>echo</code> with a command-line to invoke Notepad++…</p>
<p dir="auto">This hopefully will get you started on a solution…the solution for #2 isn’t real “tight”… :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/35895</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/35895</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Wed, 31 Oct 2018 15:11:40 GMT</pubDate></item></channel></rss>