<?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[Searching all lines between tags]]></title><description><![CDATA[<p dir="auto">I would like to copy all the lines between &lt;a href… &lt;/a&gt; from a old html file, is there a smarter way using the search tool?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23028/searching-all-lines-between-tags</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Nov 2026 10:06:03 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23028.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 24 May 2022 03:10:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Searching all lines between tags on Tue, 24 May 2022 03:23:35 GMT]]></title><description><![CDATA[<p dir="auto">@tss-tss said in <a href="/post/77008">Searching all lines between tags</a>:</p>
<blockquote>
<p dir="auto">I would like to copy all the lines between &lt;a href… &lt;/a&gt; from a old html file, is there a smarter way using the search tool?</p>
</blockquote>
<p dir="auto">When you say copy <code>between</code> I would presume the line would also contain the &lt;a href… and &lt;/a&gt; code as well. that is unless the lines are formatted in such a way as to have this code on lines by themselves and the lines you want are indeed ‘between’.</p>
<p dir="auto">So using the Mark function (Search, Mark, Ctrl+M default shortcut) you would add the following to the find field:<br />
Find What:<code>(?s)&lt;a href&gt;.+?&lt;/a&gt;</code><br />
Tick the box “bookmark line”, search mode is regular expression. Click on “Mark All”. You will now see lines that you want to copy are preceded by a blue circle/sphere. These are the bookmarks. Then Right click on this area and select “Copy Bookmarked Lines”. Create a new tab and insert those lines using Ctrl-V (paste).</p>
<p dir="auto">If you need a definition of the regular expression please just ask.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/77009</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/77009</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Tue, 24 May 2022 03:23:35 GMT</pubDate></item></channel></rss>