<?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[Prb multiple words in the sentence]]></title><description><![CDATA[<p dir="auto">Hello guys i need help please<br />
I have 2 questions<br />
I have a lot of word in the sentence<br />
How can i delete Frequent word<br />
Ex " in the garage on the building he has several cars in the garage garage garage, …<br />
I would like to delete last garage garage</p>
<p dir="auto">And the sentence become : in the garage on the builduing he has several cars in the garage …</p>
<p dir="auto">Seconde question<br />
How can i delete any website on the text like<br />
“<a href="http://Www.x.com" rel="nofollow ugc">Www.x.com</a>” or “<a href="http://www.x.org" rel="nofollow ugc">www.x.org</a>”, “<a href="http://www.x.de" rel="nofollow ugc">www.x.de</a>”</p>
<p dir="auto">Thanks in advance</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20877/prb-multiple-words-in-the-sentence</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Nov 2026 17:50:19 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20877.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 13 Mar 2021 01:41:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Prb multiple words in the sentence on Sun, 14 Mar 2021 19:08:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mamoune-zerhouni-faiz" aria-label="Profile: Mamoune-Zerhouni-faiz">@<bdi>Mamoune-Zerhouni-faiz</bdi></a> said in <a href="/post/63890">Prb multiple words in the sentence</a>:</p>
<blockquote>
<p dir="auto">Sorry to have exaggerated but please I don’t understand anything about Notepad++ commands<br />
I just discovered another error ‘double repeated words’ in sentences, such as:</p>
</blockquote>
<p dir="auto">Well, possibly you need to start learning about regular expressions as we cannot continue to give you the answer every time without you at least trying first. In our FAQ section we have a post on REGEX (regular expressions). Try to learn some of the basics which is the best starting point. If you do try, but fail, show us what you have attempted. You will get more offers of help if you at least try.</p>
<p dir="auto">Your latest problem with “double repeated words” was actually more complex than I initially thought hence the time taken to get back to you with a possible solution. Again it is a regular expression so search mode MUST be “regular expression”. Using the Replace function we have:<br />
Find What:<code>\b(\w+)(?=\W(\w+)\W\1\W\2)(\W)(\w+)\W\1\W\2</code><br />
Replace With:<code>\1\3\4</code></p>
<p dir="auto">To give a bit of a description:<br />
We look for an entire word (\b before the \w+ forces that). At this point we look ahead (?= is a lookahead, this does not actually consume any characters). The lookahead looks for a non word character (\W which can be a space, comma etc) a 2nd word, then another non-word character and the 1st word again followed by a non-word character and the 2nd word. If none of this is true, then the regex fails with the first word and proceeds to the next word, consuming it and repeats the lookahead. Once the lookahead is true then we proceed with actually consuming the 2nd word and the duplicates. In this instance I only look for 1 duplicate as that’s what your example suggests. If more than 1 duplicate exists, then run the regex again until no more duplicates exist.</p>
<p dir="auto">Terry</p>
<p dir="auto">PS when we ask that examples be entered using the <code>&lt;/&gt;</code> button please follow that request. It is important you supply both before and after views of the data in the black boxes so that we know the data can be trusted as correct and not altered by the posting engine. In this case the example you supplied might not have been affected but that’s not always the case.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63922</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63922</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sun, 14 Mar 2021 19:08:51 GMT</pubDate></item><item><title><![CDATA[Reply to Prb multiple words in the sentence on Sat, 13 Mar 2021 20:19:04 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Sorry to have exaggerated but please I don’t understand anything about Notepad++ commands</p>
<p dir="auto">I just discovered another error ‘double repeated words’ in sentences, such as:</p>
<p dir="auto">A selection of the best 3D video games on our section, video games video games, etc.</p>
<p dir="auto">I would like to remove all repeated double words as mentioned in the sentence above, and make the sentence like this:</p>
<p dir="auto">A selection of the best 3D video games on our section, video games, etc.</p>
<p dir="auto">Thanks again for your assistance!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63890</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63890</guid><dc:creator><![CDATA[Mamoune Zerhouni faiz]]></dc:creator><pubDate>Sat, 13 Mar 2021 20:19:04 GMT</pubDate></item><item><title><![CDATA[Reply to Prb multiple words in the sentence on Sat, 13 Mar 2021 15:56:31 GMT]]></title><description><![CDATA[<p dir="auto">Thank you so much sir for your help</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63880</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63880</guid><dc:creator><![CDATA[Mamoune Zerhouni faiz]]></dc:creator><pubDate>Sat, 13 Mar 2021 15:56:31 GMT</pubDate></item><item><title><![CDATA[Reply to Prb multiple words in the sentence on Sat, 13 Mar 2021 07:14:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mamoune-zerhouni-faiz" aria-label="Profile: Mamoune-Zerhouni-faiz">@<bdi>Mamoune-Zerhouni-faiz</bdi></a> said in <a href="/post/63866">Prb multiple words in the sentence</a>:</p>
<blockquote>
<p dir="auto">How can i delete Frequent word</p>
</blockquote>
<p dir="auto">One option might be the following, using the Replace function:<br />
Find What:<code>(\w+)(\W\1)+(\W)</code><br />
Replace With:<code>\1\3</code></p>
<p dir="auto">This is a regular expression so the search mode must be “regular expression”. Take note that I find the first word, then I find multiple occurrences of a non-word character followed by the first word. This repeats and then I find the last non-word character (example is space, comma etc) behind the last repeated occurrence of the word. What is returned is the word followed by the last non-word character. So for your example we return the comma behind the last copy of the word, so <code>garage,</code>. This seems to be the most sensible idea, although I do see that your idea of the change was just <code>garage</code> followed by a <code>space</code>.Consider where multiple occurrences of the same word finish the sentence (so a <code>.</code> at the end, my idea gives you back the <code>.</code>, yours would end the sentence with a <code>space</code>). So please do come back with more info if you do NOT like my answer.</p>
<p dir="auto">When you present examples we prefer that you provide several lines of examples with different types of data. Also provide the same example lines with the changes made so we can see a before AND after view.  When pasting them into your post, select them and click on the <code>&lt;/&gt;</code> button above the posting window. This places the examples inside black boxes which prevents the data being altered by the posting engine.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63868</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63868</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sat, 13 Mar 2021 07:14:55 GMT</pubDate></item></channel></rss>