<?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, lookbehind error]]></title><description><![CDATA[<p dir="auto">I tried (?&lt;=\s+) for searching 2 or more empty (allowing tab or spacebar inserted) line but this gives me an error.<br />
The error message is ‘Find : invalid regular expression’.</p>
<p dir="auto">I tested lookbehind and \s+ separately and both work fine. I want to know what is wrong when those two expressions are combined together.</p>
<p dir="auto">Actually, even (?&lt;=\s) work fine too, but when I add + or * to the right side of \s to allow multiple whitespaces, the error occurs. Someone help me please.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24085/regex-lookbehind-error</link><generator>RSS for Node</generator><lastBuildDate>Thu, 19 Nov 2026 00:07:48 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24085.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Feb 2023 16:46:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to regex, lookbehind error on Wed, 01 Feb 2023 18:40:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dinkumoil" aria-label="Profile: dinkumoil">@<bdi>dinkumoil</bdi></a> Thank you, actually I’m studying regex with 'Mastering Regex by Jeffrey Friedl and maybe I didn’t consider the differences on those engines.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83801</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83801</guid><dc:creator><![CDATA[Eli Grey]]></dc:creator><pubDate>Wed, 01 Feb 2023 18:40:58 GMT</pubDate></item><item><title><![CDATA[Reply to regex, lookbehind error on Wed, 01 Feb 2023 18:38:25 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> Thank you so much, I understood what I need.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83800</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83800</guid><dc:creator><![CDATA[Eli Grey]]></dc:creator><pubDate>Wed, 01 Feb 2023 18:38:25 GMT</pubDate></item><item><title><![CDATA[Reply to regex, lookbehind error on Wed, 01 Feb 2023 17:37:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eli-grey" aria-label="Profile: Eli-Grey">@<bdi>Eli-Grey</bdi></a></p>
<p dir="auto">Additionally to what <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said, I want to mention that this is a restriction of the <em>boost</em> regular expression engine that <em>Notepad++</em> uses under the hood. There are a few regular expression engines that don’t have this restriction (see section <em>Important Notes About Lookbehind</em> <a href="https://www.regular-expressions.info/lookaround.html" rel="nofollow ugc">&gt;&gt; at this site &lt;&lt;</a>), but in <em>Notepad++</em> we have to live with it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83797</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83797</guid><dc:creator><![CDATA[dinkumoil]]></dc:creator><pubDate>Wed, 01 Feb 2023 17:37:47 GMT</pubDate></item><item><title><![CDATA[Reply to regex, lookbehind error on Wed, 01 Feb 2023 17:44:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eli-grey" aria-label="Profile: Eli-Grey">@<bdi>Eli-Grey</bdi></a> ,</p>
<p dir="auto">Lookbehinds must be of a fixed length.  \s+ is not fixed width.</p>
<p dir="auto"><a href="https://npp-user-manual.org/docs/searching/#assertions" rel="nofollow ugc">https://npp-user-manual.org/docs/searching/#assertions</a></p>
<p dir="auto"><em>edit:</em> the manual also suggests a workaround using <code>\K</code>, so instead of <code>(?&lt;=\s+)REALTEXT</code>, use <code>\s+\KREALTEXT</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/83794</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83794</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 01 Feb 2023 17:44:45 GMT</pubDate></item></channel></rss>