<?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[Remove all but specific phrase&#x2F;line containing changing value.]]></title><description><![CDATA[<p dir="auto">Hi, I am trying to find all the database index values from a websites source code and delete all other text/code in the document so I am only left with the values.</p>
<hr />
<p dir="auto">Here is the data I currently have (“before” data):<br />
[wall of code]<br />
data-index="1034823\ <br />
[wall of code]<br />
data-index="1031769\ <br />
[wall of code]<br />
data-index="1030975\ <br />
[wall of code]<br />
data-index="1028228\</p>
<p dir="auto">Here is how I would like that data to look (“after” data):<br />
1034823</p>
<p dir="auto">1031769</p>
<p dir="auto">1030975</p>
<p dir="auto">1028228</p>
<hr />
<p dir="auto">I am kind of new to notepad++ and I couldn’t get my head to wrap around this one. I would appreciate the help!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25027/remove-all-but-specific-phrase-line-containing-changing-value</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Jul 2026 07:29:36 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25027.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Oct 2023 10:42:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Remove all but specific phrase&#x2F;line containing changing value. on Sun, 15 Oct 2023 12:17:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jrdn-bautista" aria-label="Profile: jrdn-bautista">@<bdi>jrdn-bautista</bdi></a> said in <a href="/post/89900">Remove all but specific phrase/line containing changing value.</a>:</p>
<blockquote>
<p dir="auto">I just pasted directly from the code and I didn’t know what to edit to make it work correctly</p>
</blockquote>
<p dir="auto">This is why we have that FAQ entry.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89901</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89901</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 15 Oct 2023 12:17:23 GMT</pubDate></item><item><title><![CDATA[Reply to Remove all but specific phrase&#x2F;line containing changing value. on Sun, 15 Oct 2023 12:13:48 GMT]]></title><description><![CDATA[<p dir="auto">This worked! Sorry for the mistype, I just pasted directly from the code and I didn’t know what to edit to make it work correctly. Thank you!!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89900</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89900</guid><dc:creator><![CDATA[jrdn bautista]]></dc:creator><pubDate>Sun, 15 Oct 2023 12:13:48 GMT</pubDate></item><item><title><![CDATA[Reply to Remove all but specific phrase&#x2F;line containing changing value. on Sun, 15 Oct 2023 12:37:38 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/jrdn-bautista" aria-label="Profile: jrdn-bautista">@<bdi>jrdn-bautista</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">You <strong>should</strong> have posted your text like that :</p>
<pre><code class="language-diff">[wall of code]
data-index=\"1034823\"
[wall of code]
data-index=\"1031769\"
[wall of code]
data-index=\"1030975\"
[wall of code]
data-index=\"1028228\"
</code></pre>
<hr />
<p dir="auto">Thus, :</p>
<ul>
<li>
<p dir="auto">Move <strong>on top</strong> of your file</p>
</li>
<li>
<p dir="auto">Open the <strong>Replace</strong> dialog ( <strong><code>Ctrl + H</code></strong> )</p>
</li>
</ul>
<p dir="auto">The <strong>search</strong> regex S/R becomes :</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>(?s-i).*?data-index=\\"(\d+)\\"</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>${1}\r\n\r\n</code></strong></p>
</li>
<li>
<p dir="auto">Search mode = <strong><code>Regular expression</code></strong></p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Replace All</code></strong> button</p>
</li>
</ul>
<p dir="auto">Here you are !</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89898</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89898</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 15 Oct 2023 12:37:38 GMT</pubDate></item><item><title><![CDATA[Reply to Remove all but specific phrase&#x2F;line containing changing value. on Sun, 15 Oct 2023 11:51:48 GMT]]></title><description><![CDATA[<p dir="auto">Here is the raw code if anyone is willing to take a look, would really appreciate it:</p>
<p dir="auto">pastebin com/JkEyygEV</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89897</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89897</guid><dc:creator><![CDATA[jrdn bautista]]></dc:creator><pubDate>Sun, 15 Oct 2023 11:51:48 GMT</pubDate></item><item><title><![CDATA[Reply to Remove all but specific phrase&#x2F;line containing changing value. on Sun, 15 Oct 2023 11:50:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jrdn-bautista" aria-label="Profile: jrdn-bautista">@<bdi>jrdn-bautista</bdi></a> said in <a href="/post/89894">Remove all but specific phrase/line containing changing value.</a>:</p>
<blockquote>
<p dir="auto">Hi, i tried this but instead of giving just the values it deleted all of the text. Could this be because all of the code is on a single line?</p>
</blockquote>
<p dir="auto">If I put all of your “before” text on a single line, what I provided still works just fine, for me.</p>
<p dir="auto">Suggest you follow the <a href="https://community.notepad-plus-plus.org/topic/22022/faq-desk-template-for-search-replace-questions">FAQ</a> for posting questions such as yours, in order to adequately convey all circumstances of your problem.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89896</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89896</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 15 Oct 2023 11:50:50 GMT</pubDate></item><item><title><![CDATA[Reply to Remove all but specific phrase&#x2F;line containing changing value. on Sun, 15 Oct 2023 11:47:24 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/jrdn-bautista" aria-label="Profile: jrdn-bautista">@<bdi>jrdn-bautista</bdi></a>,</p>
<p dir="auto">When you start a <strong>new</strong> post,  <strong>preferably</strong> click on the <strong><code>&lt; / &gt;</code></strong> button, on <strong>top</strong> of the posting window and replace the <strong>selected</strong> <strong><code>code_text</code></strong> zone with your <strong>present</strong> text. this will <strong>encapsulate</strong> all your text in a <strong>grey</strong> box which prevents the posting engine from possibly <strong>altering</strong> the text as it tries to format the post !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89895</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89895</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 15 Oct 2023 11:47:24 GMT</pubDate></item><item><title><![CDATA[Reply to Remove all but specific phrase&#x2F;line containing changing value. on Sun, 15 Oct 2023 11:23:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi, i tried this but instead of giving just the values it deleted all of the text. Could this be because all of the code is on a single line? The code only appears to be in a single line in Notepad++, not other text editors.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89894</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89894</guid><dc:creator><![CDATA[jrdn bautista]]></dc:creator><pubDate>Sun, 15 Oct 2023 11:23:48 GMT</pubDate></item><item><title><![CDATA[Reply to Remove all but specific phrase&#x2F;line containing changing value. on Sun, 15 Oct 2023 11:03:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jrdn-bautista" aria-label="Profile: jrdn-bautista">@<bdi>jrdn-bautista</bdi></a>:</p>
<p dir="auto">Try:</p>
<p dir="auto">Find: <code>(?s).*?data-index="(\d+)\\</code><br />
Replace: <code>${1}\r\n\r\n</code><br />
Search mode: Regular expression</p>
<p dir="auto">Have your caret at top-of-file and press the <em>Replace All</em> button.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89893</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89893</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 15 Oct 2023 11:03:08 GMT</pubDate></item></channel></rss>