<?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[How can I replace all lines with given text?]]></title><description><![CDATA[<p dir="auto">I want a regex to do this and that text that needs replacing might start or end with punctuation.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24222/how-can-i-replace-all-lines-with-given-text</link><generator>RSS for Node</generator><lastBuildDate>Sun, 11 Oct 2026 11:06:44 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24222.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 Mar 2023 19:10:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How can I replace all lines with given text? on Tue, 07 Mar 2023 21:27:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/luis-pi%C3%B1a-iii" aria-label="Profile: Luis-Piña-III">@<bdi>Luis-Piña-III</bdi></a></p>
<p dir="auto">To replace an entire line, you will want to combine the regex concepts for “anchor to beginning of line” with “match 0 or more of any character” then “anchor to end of line”.  The Online User Manual Searching/Regex section linked below will help you quickly find those concepts" (search for “anchor” and “any character” and “0 or more”)</p>
<p dir="auto">The replacement is just the text you want it to be replaced with.</p>
<p dir="auto">-—</p>
<h3>Useful References</h3>
<ul>
<li><a href="https://community.notepad-plus-plus.org/topic/21965/please-read-before-posting">Please Read Before Posting</a></li>
<li><a href="https://community.notepad-plus-plus.org/topic/22022/template-for-search-replace-questions">Template for Search/Replace Questions</a></li>
<li><a href="https://community.notepad-plus-plus.org/topic/21925/faq-desk-formatting-forum-posts">Formatting Forum Posts</a></li>
<li><a href="https://npp-user-manual.org/docs/searching/#regular-expressions" rel="nofollow ugc">Notepad++ Online User Manual: Searching/Regex</a></li>
<li><a href="https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regular-expressions-regex-documentation">FAQ: Where to find other regular expressions (regex) documentation</a></li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/84673</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84673</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 07 Mar 2023 21:27:46 GMT</pubDate></item><item><title><![CDATA[Reply to How can I replace all lines with given text? on Tue, 07 Mar 2023 19:14:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/luis-pi%C3%B1a-iii" aria-label="Profile: Luis-Piña-III">@<bdi>Luis-Piña-III</bdi></a></p>
<p dir="auto">It is good to want things.<br />
However, if you don’t put more effort into your description, you might not be on the receiving end of any advice.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84665</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84665</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 07 Mar 2023 19:14:44 GMT</pubDate></item></channel></rss>