<?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[With the help of a Regex, how to find &quot;code&quot; preceded by a &quot;&lt;&quot; only if &quot;code {&quot; is absent between &quot;&lt;style&quot; and &quot;&lt;&#x2F;style&gt;&quot; in the css section which is below ?]]></title><description><![CDATA[<p dir="auto">So, the “code” in this should be found:</p>
<pre><code>&lt;code............&gt;............&lt;/code&gt;
&lt;style type="text/css"&gt;
&lt;/style&gt;
</code></pre>
<p dir="auto">…but not in this:-</p>
<pre><code>&lt;code............&gt;............&lt;/code&gt;
&lt;style type="text/css"&gt;
code {
  font-family: &amp;quot;verdana&amp;quot;;
  font-size: 19px;
  color: black;
  font-weight: bold !important;
  line-height: 1 !important;
  }
}
&lt;/style&gt;
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/topic/27601/with-the-help-of-a-regex-how-to-find-code-preceded-by-a-only-if-code-is-absent-between-style-and-style-in-the-css-section-which-is-below</link><generator>RSS for Node</generator><lastBuildDate>Thu, 09 Jul 2026 00:16:08 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/27601.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Jul 2026 20:40:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to With the help of a Regex, how to find &quot;code&quot; preceded by a &quot;&lt;&quot; only if &quot;code {&quot; is absent between &quot;&lt;style&quot; and &quot;&lt;&#x2F;style&gt;&quot; in the css section which is below ? on Wed, 08 Jul 2026 20:54:41 GMT]]></title><description><![CDATA[<p dir="auto">I tried this Regular expression but it did not help: <code>&lt;code(?!(?:(?!&lt;\/style&gt;)(?s:.) )*&lt;style&gt;)</code> - it matches both (I want it to skip finding the <code>&lt;code......</code> in example 2 since there is a “code” between “&lt;style” and “&lt;/style&gt;”)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105863</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105863</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Wed, 08 Jul 2026 20:54:41 GMT</pubDate></item></channel></rss>