<?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[Need Help For Remove a href Tag With out remove anchor Text]]></title><description><![CDATA[<p dir="auto">&lt;a href=“<a href="http://site.com" rel="nofollow ugc">site.com</a>”&gt;hello&lt;/a&gt;</p>
<p dir="auto">Need Only "Hello"Text From Above HTML CODE How to do Using Regular Experssion</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23458/need-help-for-remove-a-href-tag-with-out-remove-anchor-text</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Nov 2026 22:42:13 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23458.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 09 Sep 2022 08:59:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Need Help For Remove a href Tag With out remove anchor Text on Fri, 09 Sep 2022 10:56:25 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/smart-warriors" aria-label="Profile: smart-warriors">@<bdi>smart-warriors</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">If we assume that the strings <strong><code>&lt;a href=</code></strong> and <strong><code>&lt;/a&gt;</code></strong> are, <strong>both,</strong> on <strong>one</strong> line, <strong>only</strong>, I suppose that the following regex does the job :</p>
<ul>
<li>
<p dir="auto">Open the <strong>Mark</strong> dialog ( <strong><code>Ctrl + M</code></strong> )</p>
</li>
<li>
<p dir="auto">SEARCH <strong><code>(?s)&lt;a href=.+?&gt;\K.+?(?=&lt;/a&gt;)</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Possibly</strong>, check the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search <strong>mode</strong></p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Mark All</code></strong> button</p>
</li>
<li>
<p dir="auto">Then, click on the <strong><code>Copy Marked Text</code></strong> button</p>
</li>
<li>
<p dir="auto">Open a <strong>new</strong> tab ( <strong><code>Ctrl + N</code></strong> )</p>
</li>
<li>
<p dir="auto">Paste the <strong>clipboard</strong>’s contents ( <strong><code>Ctrl + V</code></strong> )</p>
</li>
</ul>
<hr />
<p dir="auto">If <strong>all</strong> your <strong><code>&lt;a href=.....&gt;........&lt;/a&gt;</code></strong> definitions are contained in a <strong>single</strong> line, you may use the <strong>more restrictive</strong> regex :</p>
<p dir="auto">MARK <strong><code>(?-s)&lt;a href=.+?&gt;\K.+?(?=&lt;/a&gt;)</code></strong></p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79632</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79632</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 09 Sep 2022 10:56:25 GMT</pubDate></item></channel></rss>