<?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[Regex Search With Quotations]]></title><description><![CDATA[<p dir="auto">I am trying to search a folder (20-30 text files) for a string that can contain a variety of letters in the alphabet.</p>
<p dir="auto">example 1:<br />
range(“A1”)<br />
search = "A</p>
<p dir="auto">example 2:<br />
range(“$I$15:$I$19”)<br />
search = "$A and $I</p>
<p dir="auto">now I want to do this for all letters so I thought it would be something to the affect of for…<br />
ex 1: A|B|C|D|E|F|G|H|I|JK|L|<br />
ex 2: “$A|”$B|“$C|”$D|“$E|”$F|“$G|”$H|“$I|”$J"$K|"$L|</p>
<p dir="auto">neither work.<br />
thanks in advance. any assistance is appreciated.</p>
<p dir="auto">thanks!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22280/regex-search-with-quotations</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 05:36:10 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22280.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 Dec 2021 20:31:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Regex Search With Quotations on Sat, 18 Dec 2021 18:36:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> thanks for all your help!</p>
<p dir="auto">is there a marked as Solved for this forum?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72207</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72207</guid><dc:creator><![CDATA[DevSrc8]]></dc:creator><pubDate>Sat, 18 Dec 2021 18:36:46 GMT</pubDate></item><item><title><![CDATA[Reply to Regex Search With Quotations on Sat, 18 Dec 2021 18:28:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/devsrc8" aria-label="Profile: devsrc8">@<bdi>devsrc8</bdi></a> ,</p>
<p dir="auto">So your screenshots show exactly what I would expect.  With match case on, <code>\u</code> only matches uppercase.  With match case off, <code>\u</code> matches either uppercase, or, because it is ignoring case, lowercase as well.  That’s how things are defined to work.</p>
<p dir="auto">If you want to have case-sensitive <code>\u</code> no matter what, use <code>(?-i:\u)</code> to make the parenthesized subgroup case sensitive no matter what the checkbox says:<br />
<img src="/assets/uploads/files/1639852031967-99d24750-eeaf-4cfe-90a8-6c2224e6d8c5-image.png" alt="99d24750-eeaf-4cfe-90a8-6c2224e6d8c5-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/72206</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72206</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 18 Dec 2021 18:28:07 GMT</pubDate></item><item><title><![CDATA[Reply to Regex Search With Quotations on Sat, 18 Dec 2021 18:23:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a></p>
<p dir="auto">My apologies for not providing example data.</p>
<p dir="auto">with match case on:<br />
<img src="/assets/uploads/files/1639851768013-ad184f64-077c-4e17-9495-0a50a3f78817-image-resized.png" alt="ad184f64-077c-4e17-9495-0a50a3f78817-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">with match case off:<br />
<img src="/assets/uploads/files/1639851787872-5df6fe09-25f5-49b0-8f31-f66b894b96a9-image-resized.png" alt="5df6fe09-25f5-49b0-8f31-f66b894b96a9-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/72205</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72205</guid><dc:creator><![CDATA[DevSrc8]]></dc:creator><pubDate>Sat, 18 Dec 2021 18:23:30 GMT</pubDate></item><item><title><![CDATA[Reply to Regex Search With Quotations on Fri, 17 Dec 2021 21:32:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/devsrc8" aria-label="Profile: devsrc8">@<bdi>devsrc8</bdi></a></p>
<blockquote>
<p dir="auto">how do you make $\u and "\u only pull UPPER case instances?</p>
</blockquote>
<p dir="auto"><code>\u</code> only matches uppercase, unless you have case-insensitive match turned on.  (If case insensitive is on, obviously uppercase and lowercase will both match, by definition of case insensitive)</p>
<blockquote>
<p dir="auto">I don’t yielded the correct information.</p>
</blockquote>
<p dir="auto">Well, you haven’t given any example data that doesn’t match your expression.  That makes it harder to help you.  That’s why I pointed you to those posts, because they explain the importance of providing sample data that actually matches the data that you have.</p>
<blockquote>
<p dir="auto"><code>(?-i)[\u\d]\K\x20(?=[\u\d])</code></p>
</blockquote>
<p dir="auto">That’s a very different expression than I gave you, or than what was necessary to match text in your screenshot.  That is saying “turn off case-insensitive-match; there must be an uppercase or digit, then reset the match, then find a space that is followed by uppercase or digit”.  That has nothing to do with the example data you showed above.</p>
<p dir="auto">But given the description I just made, the expression you listed matched everything I expected in my example text below:<br />
<img src="/assets/uploads/files/1639776598920-69b9c722-e2b1-44c0-915f-18c469af0872-image.png" alt="69b9c722-e2b1-44c0-915f-18c469af0872-image.png" class=" img-fluid img-markdown" /></p>
<pre><code>range("A1")
range("$I$15:$I$19")

lowercase lowercase
UPPER UPPER
314 159
UPPER lowercase
lower UPPER
314 lower
314 UPPER
lower 159
UPPER 159
</code></pre>
<p dir="auto">It matches the spaces that come between two UPPER, or the spaces between two DIGITS, or the spaces between a digit and an upper in either order.  That’s exactly what I would expect.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72185</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72185</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 17 Dec 2021 21:32:36 GMT</pubDate></item><item><title><![CDATA[Reply to Regex Search With Quotations on Fri, 17 Dec 2021 21:17:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> thanks for the quick reply!</p>
<p dir="auto">as well as guiding me towards very helpful artifacts that I should have reviewed.</p>
<p dir="auto">how do you make $\u and "\u only pull UPPER case instances?</p>
<p dir="auto">I will read in more depth, but simply searching for \u in an effort to locate how to only pull UPPER case letters I don’t yielded the correct information.</p>
<p dir="auto">section:<br />
Then use the following regex S/R :<br />
Search for: (?-i)[\u\d]\K\x20(?=[\u\d])</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72183</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72183</guid><dc:creator><![CDATA[DevSrc8]]></dc:creator><pubDate>Fri, 17 Dec 2021 21:17:22 GMT</pubDate></item><item><title><![CDATA[Reply to Regex Search With Quotations on Fri, 17 Dec 2021 20:47:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/devsrc8" aria-label="Profile: devsrc8">@<bdi>devsrc8</bdi></a> ,</p>
<p dir="auto">For <code>|</code> to  work as logical-OR, you have to be in <strong>Regular Expression</strong> mode.  But in regex mode, <code>$</code> means “end of line”, not a literal dollar sign.</p>
<p dir="auto">Regex have prebuilt <a href="https://npp-user-manual.org/docs/searching/#character-classes" rel="nofollow ugc">character classes</a> which will help with your search; in your case, <code>\u</code> will search for an upper-case letter.  So <code>"\u</code> will match every time there’s a quote followed by an upper case.</p>
<p dir="auto"><img src="/assets/uploads/files/1639774005118-5001f5e9-a811-409c-abbf-19882466a352-image.png" alt="5001f5e9-a811-409c-abbf-19882466a352-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">To search for a literal dollar sign, you need to <a href="https://npp-user-manual.org/docs/searching/#single-character-matches" rel="nofollow ugc">escape</a> with <code>\</code> it so it will be treated as a literal character: <code>\$</code>.  So <code>\$\u</code> will match any uppercase letter that comes after a literal dollar sign.</p>
<p dir="auto"><img src="/assets/uploads/files/1639773974310-88d9954a-4336-421a-924a-81ee350d420e-image.png" alt="88d9954a-4336-421a-924a-81ee350d420e-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">-—<br />
Please note that your examples sometimes had <code>"</code> and sometimes had <code>“</code> – those are two different characters.  If you had followed the advice given in “<a href="https://community.notepad-plus-plus.org/topic/21965/please-read-before-posting">Please Read Before Posting</a>” (which you should have seen immediately below the <strong>New Topic</strong> button that you clicked):<br />
<img src="/assets/uploads/files/1639773791879-8e47a553-d139-4388-8d6b-5920fa3f05bb-image.png" alt="8e47a553-d139-4388-8d6b-5920fa3f05bb-image.png" class=" img-fluid img-markdown" /><br />
and the advice it links to in the “<a href="https://community.notepad-plus-plus.org/topic/22022/template-for-search-replace-questions">Template for Search/Replace Questions</a>” and “<a href="https://community.notepad-plus-plus.org/topic/21925/faq-desk-formatting-forum-posts">Forum Formatting Posts</a>” FAQ entries, you would have been instructed how to present your question in a way that left no ambiguity as to which was the “right” quote characters for your data.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72181</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72181</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 17 Dec 2021 20:47:32 GMT</pubDate></item></channel></rss>