<?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[Find line containing word and the next line below it]]></title><description><![CDATA[<p dir="auto">I have an ini file that contains ‘tweaks’. They are entered in the file with a comment on one line explaining the tweak, then the tweak key/value on the next line.</p>
<p dir="auto">For example:</p>
<pre><code>ListSelectOnPasteInSamePath=1
ListCheckboxSelectionMode=0
ListCellsFirstLinesOnly=0
ListAutoSelectFirst=1
; Tweak: right-padding of columns
ListDetailsColumnsSpacing=3
; Tweak: left-padding of columns
ListDetailsColumnsSpacingLeft=3
ListsLineSpacing=2
</code></pre>
<p dir="auto">I assume I’ll need to use regex to do it but is it possible to do a Find All for only the tweak lines and their corresponding tweak key/value lines? Or by any other method if Find All isn’t the way to do it?</p>
<p dir="auto">The result for the example given would be:</p>
<pre><code>; Tweak: right-padding of columns
ListDetailsColumnsSpacing=3
; Tweak: left-padding of columns
ListDetailsColumnsSpacingLeft=3
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/topic/26538/find-line-containing-word-and-the-next-line-below-it</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Jul 2026 07:45:15 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/26538.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Jan 2025 01:23:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Find line containing word and the next line below it on Mon, 13 Jan 2025 01:59:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a> said in <a href="/post/99098">Find line containing word and the next line below it</a>:</p>
<blockquote>
<p dir="auto">I’d go for a “Mark” with bookmark lines selected.</p>
<p dir="auto">Use:(?-s)^(?=.*tweak:)(.+\R.+\R) and click Mark All. All the tweak lines and corresponding following lines are bookmarked. Then you’d just copy the bookmarked lines to another tab.</p>
</blockquote>
<p dir="auto">Thanks, Terry, perfect!!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99099</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99099</guid><dc:creator><![CDATA[deleelee]]></dc:creator><pubDate>Mon, 13 Jan 2025 01:59:48 GMT</pubDate></item><item><title><![CDATA[Reply to Find line containing word and the next line below it on Mon, 13 Jan 2025 01:44:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/deleelee" aria-label="Profile: deleelee">@<bdi>deleelee</bdi></a> said in <a href="/post/99097">Find line containing word and the next line below it</a>:</p>
<blockquote>
<p dir="auto">but is it possible to do a Find All for only the tweak lines and their corresponding tweak key/value lines?</p>
</blockquote>
<p dir="auto">Well I’d go for a “Mark” with bookmark lines selected.</p>
<p dir="auto">Use:<code>(?-s)^(?=.*tweak:)(.+\R.+\R)</code> and click Mark All. All the tweak lines and corresponding following lines are bookmarked. Then you’d just copy the bookmarked lines to another tab.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99098</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99098</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Mon, 13 Jan 2025 01:44:58 GMT</pubDate></item></channel></rss>