<?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[How to find specific string (in my case its a link) that end with quotation mark.]]></title><description><![CDATA[<p dir="auto">I have a wall of text like this.<br />
<a href="https://imgur.com/ZyahUCT" rel="nofollow ugc">https://imgur.com/ZyahUCT</a></p>
<p dir="auto">I wanna mark all the twitch links with a channel names and copy them , thats a basic idea.</p>
<p dir="auto">The only solution i have, is to search for this<br />
<a href="https://imgur.com/m4RdOIf" rel="nofollow ugc">https://imgur.com/m4RdOIf</a></p>
<p dir="auto">After that (is where i stuck) it should mark up until the quotation mark<br />
like that<br />
<a href="https://imgur.com/oNneMqd" rel="nofollow ugc">https://imgur.com/oNneMqd</a></p>
<p dir="auto">I am sure there is a way to achive this using regex. Please help me guys.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16570/how-to-find-specific-string-in-my-case-its-a-link-that-end-with-quotation-mark</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 03:51:58 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16570.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 04 Nov 2018 21:55:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to find specific string (in my case its a link) that end with quotation mark. on Tue, 06 Nov 2018 19:42:05 GMT]]></title><description><![CDATA[<p dir="auto">Thank you very much.That was easier than i thought.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36112</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36112</guid><dc:creator><![CDATA[Fujosej Fujo]]></dc:creator><pubDate>Tue, 06 Nov 2018 19:42:05 GMT</pubDate></item><item><title><![CDATA[Reply to How to find specific string (in my case its a link) that end with quotation mark. on Tue, 06 Nov 2018 19:26:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fujosej-fujo" aria-label="Profile: Fujosej-Fujo">@<bdi>Fujosej-Fujo</bdi></a><br />
this is actually very easy. You only need to search for <code>http://</code> and have the replacement as <code>https://www.</code>.<br />
You could even do this with the Replace function set to “normal” mode as there aren’t any special characters as used previously (.+?) etc.</p>
<p dir="auto">Find What:<code>http://</code><br />
Replace With:<code>https://www.</code></p>
<p dir="auto">As I said this can be either as normal mode or  regular expression mode, it won’t matter.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36110</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36110</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Tue, 06 Nov 2018 19:26:01 GMT</pubDate></item><item><title><![CDATA[Reply to How to find specific string (in my case its a link) that end with quotation mark. on Tue, 06 Nov 2018 19:19:31 GMT]]></title><description><![CDATA[<p dir="auto">I have one more question , sorry)</p>
<p dir="auto">so lets say i have this list<br />
<a href="http://rgho.st/6k9G4rHSh" rel="nofollow ugc">http://rgho.st/6k9G4rHSh</a><br />
i wanna add ‘s’ to http and also a ‘www.’ before twitch.<br />
Is there a way to do this with regex?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36109</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36109</guid><dc:creator><![CDATA[Fujosej Fujo]]></dc:creator><pubDate>Tue, 06 Nov 2018 19:19:31 GMT</pubDate></item><item><title><![CDATA[Reply to How to find specific string (in my case its a link) that end with quotation mark. on Mon, 05 Nov 2018 18:59:40 GMT]]></title><description><![CDATA[<p dir="auto">Once again , thank you guys! Works like a charm.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36073</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36073</guid><dc:creator><![CDATA[Fujosej Fujo]]></dc:creator><pubDate>Mon, 05 Nov 2018 18:59:40 GMT</pubDate></item><item><title><![CDATA[Reply to How to find specific string (in my case its a link) that end with quotation mark. on Mon, 05 Nov 2018 01:09:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a><br />
You’re mostly correct, except that I believe the OP didn’t want the quote characters included, they were just to delimit the text he DID want. Thus your regex should be<br />
Find What:<code>(?s-i).+?"(https://www.twitch.tv.+?)"|.+</code><br />
the Replace With field is as stated.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36048</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36048</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Mon, 05 Nov 2018 01:09:11 GMT</pubDate></item><item><title><![CDATA[Reply to How to find specific string (in my case its a link) that end with quotation mark. on Mon, 05 Nov 2018 01:06:46 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/fujosej" aria-label="Profile: fujosej">@<bdi>fujosej</bdi></a> Fujo, @rerry-r and <strong>All</strong>,</p>
<p dir="auto">Thanks, <a class="plugin-mentions-user plugin-mentions-a" href="/user/fujosej-fujo" aria-label="Profile: fujosej-fujo">@<bdi>fujosej-fujo</bdi></a>, for your <strong><code>new 6.txt</code></strong> text file. It’s <strong>always</strong> better to work on <strong>“real”</strong> data  ;-))</p>
<p dir="auto">I think, <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: terry-r">@<bdi>terry-r</bdi></a>, that <strong>all</strong> work can be reduced to an <strong>unique</strong>, regex <strong>S/R</strong>, only ;-))</p>
<hr />
<p dir="auto">So, <a class="plugin-mentions-user plugin-mentions-a" href="/user/fujosej-fujo" aria-label="Profile: fujosej-fujo">@<bdi>fujosej-fujo</bdi></a>, basically, you’re searching for <strong>any</strong> area of text :</p>
<ul>
<li>
<p dir="auto">Beginning with <strong><code>"https://www.twitch.tv</code></strong></p>
</li>
<li>
<p dir="auto">Ending at the <strong>first</strong> next <strong>quote</strong> char <strong><code>"</code></strong></p>
</li>
</ul>
<p dir="auto">This <strong>regex</strong>, which searches for such an area, is :</p>
<p dir="auto"><strong><code>(?s-i)"https://www.twitch.tv.+?"</code></strong></p>
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">The <strong><code>(?s-i)</code></strong> <strong>modifiers</strong>, at <strong>beginning</strong>, means that :</p>
<ul>
<li>
<p dir="auto">Any <strong>meta</strong>-character <strong>dot</strong> ( <strong><code>.</code></strong> ) represents, absolutely, any single character, even <strong>EOL</strong> ones ( <strong><code>(?s)</code></strong> )</p>
</li>
<li>
<p dir="auto">The regex engine will search in a <strong>non-insensitive</strong> way ( <strong><code>(?-i)</code></strong> )</p>
</li>
</ul>
</li>
<li>
<p dir="auto">Then, it searches the <strong>literal</strong> string <strong><code>"https://www.twitch.tv</code></strong></p>
</li>
<li>
<p dir="auto">Finally the part <strong><code>.+?"</code></strong> finds the <strong>shortest</strong> area of <strong>any</strong> character, till the <strong>first next</strong> quote char <strong><code>"</code></strong></p>
</li>
</ul>
<hr />
<p dir="auto">Now that we built this <strong>first</strong> regex to match the zones to <strong>extract</strong>, we create a <strong>second</strong> regex which contains this <strong>first</strong> regex, using the <strong>syntax</strong>, where your regex is surrounded with <strong>parentheses</strong>, in order to <strong>store</strong> its value as <strong>group<code>1</code></strong>, for future <strong>replacement</strong> :</p>
<p dir="auto">SEARCH <strong><code>(?s-i).+?(</code>Your regex<code>)|.+</code></strong></p>
<p dir="auto">Thus, this leads to the correct regex <strong>S/R</strong>, below :</p>
<p dir="auto">SEARCH <strong><code>(?s-i).+?("https://www.twitch.tv.+?")|.+</code></strong></p>
<p dir="auto">REPLACE <strong><code>\1\r\n</code></strong></p>
<p dir="auto">=&gt; From your <strong><code>new 6.txt</code></strong> file, <strong><code>366 </code></strong> <strong>replacements</strong> occur and you get a <strong>neat</strong> list of <strong><code>365</code></strong> <strong>links</strong> ;-))</p>
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">After the <strong>modifiers</strong>, the part <strong><code>.+?</code></strong> matches the <strong>shortest</strong> part from, either, the <strong>beginning</strong> of file or the <strong>end</strong> of the <strong>previous</strong> match, until the expression <strong><code>"https://www.twitch.tv.+?"</code></strong></p>
</li>
<li>
<p dir="auto">In <strong>replacement</strong>, we rewrite, only, the expected <strong>group<code>1</code></strong>, which must be <strong>extracted</strong>, followed with a <strong>line-break</strong></p>
</li>
<li>
<p dir="auto">Near the <strong>end</strong> of the file, when <strong>no more</strong> <strong><code>"https://www.twitch.tv</code></strong> can be found, the regex engine uses the <strong>second</strong> alternative <strong><code>.+</code></strong>, after the <strong>alternation</strong> symbol <strong><code>|</code></strong>, which will grab <strong>all</strong> text till the <strong>very end</strong> of the file, as the <strong><code>(?s)</code></strong> modifier is always <strong>active</strong> !</p>
</li>
<li>
<p dir="auto">This time, as <strong>group<code>1</code></strong> is <strong>not</strong> defined, the replacement simply <strong>delete</strong> this last <strong>non-wanted</strong> part</p>
</li>
</ul>
<hr />
<p dir="auto">Refer also to this more <strong>complete</strong> post, on that topic ( How to <strong>extract all</strong> the results <strong>matched</strong>  ) :</p>
<p dir="auto"><a href="https://notepad-plus-plus.org/community/topic/12710/marked-text-manipulation/8" rel="nofollow ugc">https://notepad-plus-plus.org/community/topic/12710/marked-text-manipulation/8</a></p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36047</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36047</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 05 Nov 2018 01:06:46 GMT</pubDate></item><item><title><![CDATA[Reply to How to find specific string (in my case its a link) that end with quotation mark. on Mon, 05 Nov 2018 00:17:38 GMT]]></title><description><![CDATA[<p dir="auto">This is amazing, thank you very much , works beautifully.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36045</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36045</guid><dc:creator><![CDATA[Fujosej Fujo]]></dc:creator><pubDate>Mon, 05 Nov 2018 00:17:38 GMT</pubDate></item><item><title><![CDATA[Reply to How to find specific string (in my case its a link) that end with quotation mark. on Mon, 05 Nov 2018 00:00:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fujosej-fujo" aria-label="Profile: Fujosej-Fujo">@<bdi>Fujosej-Fujo</bdi></a><br />
I have had a slightly longer look at the file you provided. I note that you mentioned about quotes, however your initial regex did NOT include those. In the file it would appear there are some instances of <a href="http://twitch.tv" rel="nofollow ugc">twitch.tv</a> without quotes. I’m not sure you actually intend to capture those as well.</p>
<p dir="auto">I’ve made a revised regex which doesn’t need so many steps, however it will still require the final file to be edited a bit. Once you try it you will see what I mean. Some of the lines stick out very easily as not being correct.</p>
<p dir="auto">Find What:<code>.+?"(https://www.twitch.tv/[^"]+)</code><br />
Replace With:<code>\1\r\n</code></p>
<p dir="auto">So no need to remove carriage returns, but you will need to remove those lines that DON’T start with “https”. This can be done with Mark, also ticking bookmark, which can then be used to remove lines bookmarked.<br />
Find What:<code>^[^h]</code></p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36043</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36043</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Mon, 05 Nov 2018 00:00:53 GMT</pubDate></item><item><title><![CDATA[Reply to How to find specific string (in my case its a link) that end with quotation mark. on Sun, 04 Nov 2018 23:25:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fujosej-fujo" aria-label="Profile: Fujosej-Fujo">@<bdi>Fujosej-Fujo</bdi></a><br />
Your file was a great help. Definitely needed to see that as it showed me that the lines were very long, with multiple occurences on each line of the text you want.</p>
<p dir="auto">So here is my revised set of steps.</p>
<ol>
<li>Make a copy in another tab of Notepad++</li>
<li>Use the Replace Function to remove all line endings (carriage return line feeds).<br />
Find What:<code>\R</code><br />
Replace with:<code>empty field</code>   &lt;—nothing in this field</li>
</ol>
<p dir="auto">Now everything is on 1 line (it may not look that way if you have word wrap turned on)</p>
<ol start="3">
<li>Use Replace function to remove ALL unwanted text.<br />
Find What:<code>.+?(https://www.twitch.tv/[^"]+)</code><br />
Replace With:<code>\1</code></li>
</ol>
<p dir="auto">This will remove all unwanted text except for the last occurance.</p>
<ol start="4">
<li>Now to put all occurances of the text we want on different lines.<br />
Find What:<code>(https://www.twitch.tv/)</code><br />
Replace With:<code>\r\n\1</code></li>
</ol>
<p dir="auto">Once this step is completed, go to the last line and remove the extra text behind the portion you want to keep.</p>
<p dir="auto">Again this is a quick process, I haven’t spent much time on making it do everything. Sometimes quick and easy steps are better than trying to cover ALL bases and using a long winded approach.</p>
<p dir="auto">Have a go and let us know.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36041</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36041</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sun, 04 Nov 2018 23:25:12 GMT</pubDate></item><item><title><![CDATA[Reply to How to find specific string (in my case its a link) that end with quotation mark. on Sun, 04 Nov 2018 23:12:42 GMT]]></title><description><![CDATA[<p dir="auto">In my file i have only 10 lines, like that<br />
<a href="https://imgur.com/s7JCMfP" rel="nofollow ugc">https://imgur.com/s7JCMfP</a></p>
<p dir="auto">Maybe bacause of that i cant achive what i want.</p>
<p dir="auto">After Find and replace<br />
<a href="https://imgur.com/ESaV0VU" rel="nofollow ugc">https://imgur.com/ESaV0VU</a><br />
it deletes almost everything i need and leaves me with 8 matches of twitch.</p>
<p dir="auto">Like this<br />
<a href="https://imgur.com/SGHI8W2" rel="nofollow ugc">https://imgur.com/SGHI8W2</a></p>
<p dir="auto">Here is a txt file that i am using , maybe this way it will be easier to figure out.<br />
<a href="http://rgho.st/6TlbcFmlG" rel="nofollow ugc">http://rgho.st/6TlbcFmlG</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/36040</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36040</guid><dc:creator><![CDATA[Fujosej Fujo]]></dc:creator><pubDate>Sun, 04 Nov 2018 23:12:42 GMT</pubDate></item><item><title><![CDATA[Reply to How to find specific string (in my case its a link) that end with quotation mark. on Sun, 04 Nov 2018 22:51:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fujosej-fujo" aria-label="Profile: Fujosej-Fujo">@<bdi>Fujosej-Fujo</bdi></a></p>
<p dir="auto">I probably should ask the question, does any occurance of the text you want crossover lines. I see one of the highlighted instances was right at the end of a line. Currently I haven’t catered for that situation, so check (manually if need) for any other <a href="http://twitch.tv" rel="nofollow ugc">twitch.tv</a> occurrences that did NOT get marked.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36038</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36038</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sun, 04 Nov 2018 22:51:18 GMT</pubDate></item><item><title><![CDATA[Reply to How to find specific string (in my case its a link) that end with quotation mark. on Sun, 04 Nov 2018 22:47:23 GMT]]></title><description><![CDATA[<p dir="auto">That was what I was referring to. Marking just shows you the occurances. It doesn’t help with additional processing.</p>
<p dir="auto">What I think you really want to do is to use a copy of the file which you will selectively destroy some of text in, leaving only the references you want.</p>
<p dir="auto">Here’s what I’d do. Make a copy of the file (into another tab of Notepad++).<br />
Use the following regex to remove all unwanted text. This is only a rough job. You may still need to remove lines where the text does NOT occur.<br />
Find What:<code>^.+?(https://www.twitch.tv/[^"]+).+</code><br />
Replace With:<code>\1</code></p>
<p dir="auto">So ANY line with the text you want will ONLY have that text remaining on the line. All other lines without it will be unchanged. I’d then use a line sort function (Edit, Line Operations, Sort Lines Lexicographically Ascending). This will put all the lines you want to keep together. Remove all others. I could spend more time on a regex that would do ALL this but this is quick and easy to do.</p>
<p dir="auto">See how you go with this.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36037</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36037</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sun, 04 Nov 2018 22:47:23 GMT</pubDate></item><item><title><![CDATA[Reply to How to find specific string (in my case its a link) that end with quotation mark. on Sun, 04 Nov 2018 22:37:58 GMT]]></title><description><![CDATA[<p dir="auto">Works perfectly , thank you.</p>
<p dir="auto">Now i need to copy all this text.(370 matches)<br />
<a href="https://imgur.com/zcKjxAS" rel="nofollow ugc">https://imgur.com/zcKjxAS</a></p>
<p dir="auto">Is there a way to do this, i think that shouldn’t be too difficult.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36036</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36036</guid><dc:creator><![CDATA[Fujosej Fujo]]></dc:creator><pubDate>Sun, 04 Nov 2018 22:37:58 GMT</pubDate></item><item><title><![CDATA[Reply to How to find specific string (in my case its a link) that end with quotation mark. on Sun, 04 Nov 2018 22:27:16 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/fujosej-fujo" aria-label="Profile: Fujosej-Fujo">@<bdi>Fujosej-Fujo</bdi></a><br />
The following regex will capture (highlight) the remainder of the text you seek. I’m not sure how it will help you though as you suggest you need to further manipulate the text which is highlighted.</p>
<p dir="auto">So on the Mark function use:<br />
Find What:<code>https://www.twitch.tv/[^"]+</code></p>
<p dir="auto">As I was not able to determine the exact quote character you use this may need adjusting. If my regex does NOT get the right text, copy the closing quote character from your file and replace mine (in the regex). Quotes can be problematic as there isn’t just 1 kind.</p>
<p dir="auto">Let me know how you get on and especially if you require further help.</p>
<p dir="auto">Just so you know, how the regex works, look for the first bit (which you already had), followed by ANY character as long as it isn’t a quote, for as many characters as can be found. Therefore it will stop just short of the quote character.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36035</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36035</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sun, 04 Nov 2018 22:27:16 GMT</pubDate></item></channel></rss>