<?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[Help with regex: bug?]]></title><description><![CDATA[<p dir="auto">I feel like something is going wrong with my regex search in notepad++. It looks like a bug but I want to know if it’s a problem in my query. My query is highlighting something it is not supposed to.<br />
My query:</p>
<pre><code>\b([A-Z]([A-Za-z]*)\.[a-zA-Z_-][a-zA-Z_-]*)
</code></pre>
<p dir="auto">essentially, it should start with capital letter, then have any letters after it, a dot, and then any function call name.<br />
My query is highlighting an instance that doesn’t start with a capital letter and I don’t know how to stop it.<br />
Wrongly highlighting:</p>
<pre><code>session.issued
</code></pre>
<p dir="auto">in</p>
<pre><code>if session.issued==max_issued:
</code></pre>
<p dir="auto">This happens with EnhanceAnyLexer and N++ search. Checking on online regex testers this isn’t the case: see <a href="http://regexr.com/7nu78" rel="nofollow ugc">regexr.com/7nu78</a><br />
See screenshots too.<br />
(I know that I can modify my query for [^=] to temporarily fix this, but that doesn’t solve the issue of unexpected regex behaviour.)<br />
My version: 8.5.8<br />
Would appreciate help here. Thanks!</p>
<p dir="auto"><img src="/assets/uploads/files/1701072447980-4f42c346-aca8-41d0-8942-6d23fa49a490-image.png" alt="4f42c346-aca8-41d0-8942-6d23fa49a490-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1701072523364-20e0e8c4-49bf-41e6-979d-a1802d7d69ed-image.png" alt="20e0e8c4-49bf-41e6-979d-a1802d7d69ed-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25176/help-with-regex-bug</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 18:26:56 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25176.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Nov 2023 08:18:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Help with regex: bug? on Mon, 27 Nov 2023 12:42:43 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">By default the regex engine is case insensitive meaning a-z and A-Z are the same.</p>
</blockquote>
<blockquote>
<p dir="auto">it did not occur (to me) that a language like regex with separate options for uppercase and lowercase could have any case insensitivity enabled by default.</p>
</blockquote>
<p dir="auto">It actually isn’t case sensitive by default.  But because the Notepad++ user interface to searching has a <em>Match case</em> checkbox, the state of that become part of the operation.  If uncheckmarked when the operation starts, then, well…</p>
<p dir="auto">For regex purists, perhaps always starting your regex with <code>(?-i)</code> – which overrides the state of the <em>Match case</em> checkbox – is the way to go.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/90790</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/90790</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 27 Nov 2023 12:42:43 GMT</pubDate></item><item><title><![CDATA[Reply to Help with regex: bug? on Mon, 27 Nov 2023 08:59:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a> found. Fixed. Thanks for the info; it did not occur that a language like regex with separate options for uppercase and lowercase could have any case insensitivity enabled by default.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/90788</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/90788</guid><dc:creator><![CDATA[Monospace-V]]></dc:creator><pubDate>Mon, 27 Nov 2023 08:59:20 GMT</pubDate></item><item><title><![CDATA[Reply to Help with regex: bug? on Mon, 27 Nov 2023 08:51:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/monospace-v" aria-label="Profile: Monospace-V">@<bdi>Monospace-V</bdi></a><br />
By default the regex engine is case insensitive meaning a-z and A-Z are the same. You need to use a modifier before the expression to make it see capitals only when using A-Z. Look at (?-i). Search posts on this forum as there are lots of expressions using this where the case is important.</p>
<p dir="auto">Sorry I’m typing this on a phone so hard to find and post links</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/90787</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/90787</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Mon, 27 Nov 2023 08:51:33 GMT</pubDate></item></channel></rss>