<?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[Removing everything but the content of certain HTML tags]]></title><description><![CDATA[<p dir="auto">Say, I open an HTML page in Notepad++.</p>
<p dir="auto">This page has a lot of stuff, but especially these two tags:</p>
<p dir="auto">&lt;div id=“first id” class=“first class”&gt;CONTENT&lt;/div&gt;</p>
<p dir="auto">&lt;div id=“second id” class=“second class”&gt;CONTENT&lt;/div&gt;</p>
<p dir="auto">I’d like to remove everything from the file, but the CONTENT of these two tags. How could I do that in the most efficient manner?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/14295/removing-everything-but-the-content-of-certain-html-tags</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 05:40:19 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/14295.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Aug 2017 11:59:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Removing everything but the content of certain HTML tags on Sun, 13 Aug 2017 17:36:32 GMT]]></title><description><![CDATA[<p dir="auto">This worked well! Thank you!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/26242</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/26242</guid><dc:creator><![CDATA[Eugene Fishgalov]]></dc:creator><pubDate>Sun, 13 Aug 2017 17:36:32 GMT</pubDate></item><item><title><![CDATA[Reply to Removing everything but the content of certain HTML tags on Wed, 09 Aug 2017 19:17:16 GMT]]></title><description><![CDATA[<p dir="auto">I’m not sure, if this is an efficient way, but at least it is one way: You could use a regular expressions and replace everything with the parentheses placeholders. Open the replace dialog (Ctrl + H) and enter in “Find what” following regular expression:</p>
<pre><code>(.*?)(&lt;div id=\"first id\" class=\"first class\"&gt;)(.*?)(&lt;\/div&gt;)(.*?)(&lt;div id=\"second id\" class=\"second class\"&gt;)(.*?)(&lt;\/div&gt;)(.*)
</code></pre>
<p dir="auto">And in the “Replace with” field: ${3}${7}<br />
Or, alternatively: ${3}\r\n${7}</p>
<p dir="auto">The second one will add a line break between the two contents. You must also set the “Search Mode” to “Regular expression” and check the checkmark “. matches newline”. Finally, click “Replace all”.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/26191</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/26191</guid><dc:creator><![CDATA[StanDog]]></dc:creator><pubDate>Wed, 09 Aug 2017 19:17:16 GMT</pubDate></item></channel></rss>