<?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[Replace help]]></title><description><![CDATA[<p dir="auto">Hello, I would like to replace multiple words… In a file I have a lot of colordiffuse=“[hexcolor]” with differents colors so colordiffuse=“FF545287” ; colordiffuse=“00FFFFFF” ,etc… And what I would like to to replace all of these lines by colordiffuse=“FF000000” so by a single color</p>
<p dir="auto">Is it possible ?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20819/replace-help</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 19:56:43 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20819.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Mar 2021 16:03:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Replace help on Tue, 02 Mar 2021 16:36:30 GMT]]></title><description><![CDATA[<p dir="auto">Okay thanks, it works !</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63454</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63454</guid><dc:creator><![CDATA[Y M]]></dc:creator><pubDate>Tue, 02 Mar 2021 16:36:30 GMT</pubDate></item><item><title><![CDATA[Reply to Replace help on Tue, 02 Mar 2021 16:31:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/y-m" aria-label="Profile: Y-M">@<bdi>Y-M</bdi></a></p>
<p dir="auto"><code>(?&lt;=colordiffuse=").+?(?=")</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/63452</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63452</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Tue, 02 Mar 2021 16:31:05 GMT</pubDate></item><item><title><![CDATA[Reply to Replace help on Tue, 02 Mar 2021 16:30:08 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">Nothing special, just a pure typo.<br />
I actually wanted to type the positive lookahead but for whatever reason … :-(</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63451</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63451</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Tue, 02 Mar 2021 16:30:08 GMT</pubDate></item><item><title><![CDATA[Reply to Replace help on Tue, 02 Mar 2021 16:24:56 GMT]]></title><description><![CDATA[<p dir="auto">And how to do that when it is colordiffuse=“[something]”, not only hexadecimal values but everything in the “”</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63450</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63450</guid><dc:creator><![CDATA[Y M]]></dc:creator><pubDate>Tue, 02 Mar 2021 16:24:56 GMT</pubDate></item><item><title><![CDATA[Reply to Replace help on Tue, 02 Mar 2021 16:24:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> said in <a href="/post/63447">Replace help</a>:</p>
<blockquote>
<p dir="auto">find what:<code>(?&lt;=colordiffuse=")&lsqb;&lsqb;:xdigit:&rsqb;&rsqb;{8}(?!&gt;")</code></p>
</blockquote>
<p dir="auto">That works for the sample data, and the OP seems happy.</p>
<p dir="auto">But I’m curious: Why did you choose a negative lookahead <code>(?!&gt;")</code> saying that the next two characters (after the 8 hex digits) aren’t <code>&gt;"</code>, rather than using a positive lookahead <code>(?=")</code> saying that the next character (after the 8 hex digits) must be <code>"</code>?  If <code>&gt;"</code> had been mentioned as an exception, I would understand using that, but as it is, that seems an interesting choice, and I wanted to see if there was any insight behind it, or just arbitrary on your part?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63449</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63449</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 02 Mar 2021 16:24:09 GMT</pubDate></item><item><title><![CDATA[Reply to Replace help on Tue, 02 Mar 2021 16:21:25 GMT]]></title><description><![CDATA[<p dir="auto">Thanks !</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63448</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63448</guid><dc:creator><![CDATA[Y M]]></dc:creator><pubDate>Tue, 02 Mar 2021 16:21:25 GMT</pubDate></item><item><title><![CDATA[Reply to Replace help on Tue, 02 Mar 2021 16:12:04 GMT]]></title><description><![CDATA[<p dir="auto">It looks like the colors are hexadecimal values and each are 8 digits. If this is the case, then you can use<br />
find what:<code>(?&lt;=colordiffuse=")&lsqb;&lsqb;:xdigit:&rsqb;&rsqb;{8}(?!&gt;")</code><br />
replace with:<code>FF000000</code><br />
and check regular expression checkbox</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63447</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63447</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Tue, 02 Mar 2021 16:12:04 GMT</pubDate></item></channel></rss>