<?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[Find option]]></title><description><![CDATA[<p dir="auto">I have to compare a lot of strings and keep only distincts strings.<br />
No problem if there are many identical strings but sometimes I encounter a string that is nearly the same.<br />
My question : I propose to have a compare string option that gives for each string the percent of identical parts;</p>
<p dir="auto">Example:</p>
<p dir="auto">France<br />
Table<br />
Street<br />
England<br />
StreetView</p>
<p dir="auto">and we search for “Street”, so the result would be</p>
<p dir="auto">France 0%<br />
Table 0%<br />
Street 100%<br />
England 0%<br />
StreetView 50%</p>
<p dir="auto">I have to use this for finding similar streets. After I have to change the similar streets with the unique string. It is for having an index in a database.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20606/find-option</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 13:04:56 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20606.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 16 Jan 2021 16:46:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Find option on Sat, 16 Jan 2021 17:51:36 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/mathenay-lankou" aria-label="Profile: mathenay-lankou">@<bdi>mathenay-lankou</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Here is a <strong>regex</strong> solution :</p>
<ul>
<li>Open your <strong>list</strong> of strings. For instance :</li>
</ul>
<pre><code class="language-z">France
Table
Street
England
StreetView
</code></pre>
<ul>
<li>
<p dir="auto">Open the <strong>Replace</strong> dialog ( <strong><code>Ctrl + H )</code></strong></p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>(?-is)^(Street)$|(.*(?1).*)|(.+)</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>$0(?1 100%)(?2 50%)(?3 0%)</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Tick</strong> the <strong><code>Wrap around</code></strong>, preferably</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search mode</p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Replace All</code></strong> button</p>
</li>
</ul>
</li>
</ul>
<p dir="auto">=&gt; You should get the <strong>expected</strong> list, below :</p>
<pre><code class="language-z">France 0%
Table 0%
Street 100%
England 0%
StreetView 50%
</code></pre>
<p dir="auto">If I’m on the <strong>right</strong> way, I’ll explain you the <strong>regex</strong> details, next time ;-))</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61931</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61931</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 16 Jan 2021 17:51:36 GMT</pubDate></item></channel></rss>