<?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 to copy the Headings, add some text before it and reproduce that just before some unique text]]></title><description><![CDATA[<pre><code>&lt;H1........&gt;Heading1&lt;/H1&gt;
&lt;H2........&gt;Some text&lt;/H2&gt;
&lt;H2........&gt;Different text&lt;/H2&gt;
&lt;H2........&gt;Altogether different text&lt;/H2&gt;
Some paragraphs here
&lt;/P&gt; (or &lt;/ul&gt;)
&lt;P..........&gt;&lt;span..........&gt;&lt;b&gt;Please E-mail us&lt;/b&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H2........&gt;Heading that should not be reproduced&lt;/H2&gt;
Some paragraphs here
&lt;/ul&gt; (or &lt;/P&gt;)
&lt;P..........&gt;&lt;b&gt;&lt;span..........&gt;Please E-mail us&lt;/span&gt;&lt;/b&gt;&lt;/P&gt;
</code></pre>
<p dir="auto">Should become</p>
<pre><code>&lt;H1........&gt;Heading1&lt;/H1&gt;
&lt;H2........&gt;Some text&lt;/H2&gt;
&lt;H2........&gt;Different text&lt;/H2&gt;
&lt;H2........&gt;Altogether different text&lt;/H2&gt;
Some paragraphs here
&lt;/P&gt; (or &lt;/ul&gt;)
&lt;P..........&gt;&lt;span..........&gt;&lt;b&gt;Please E-mail us&lt;/b&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H2........&gt;Heading that should not be reproduced&lt;/H2&gt;
Some paragraphs here
&lt;/ul&gt; (or &lt;/P&gt;)
&lt;P..........&gt;We have a Some text, We have a Different text, We have a Altogether different text.
&lt;P..........&gt;&lt;b&gt;&lt;span..........&gt;Please E-mail us&lt;/span&gt;&lt;/b&gt;&lt;/P&gt;
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/topic/23842/how-to-copy-the-headings-add-some-text-before-it-and-reproduce-that-just-before-some-unique-text</link><generator>RSS for Node</generator><lastBuildDate>Fri, 07 Aug 2026 11:59:56 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23842.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 03 Dec 2022 18:27:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to copy the Headings, add some text before it and reproduce that just before some unique text on Mon, 05 Dec 2022 19:29:29 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> and <strong>All</strong>,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a>, here is my <strong>only</strong> contribution to your problem :</p>
<p dir="auto">If you’ll find this solution <strong>insteresting</strong>, just be <strong>nice</strong> and make a <strong>donation</strong> to @Don-ho. It’s, I think, the <strong>least</strong> you can do !</p>
<hr />
<p dir="auto">If I assume that :</p>
<ul>
<li>
<p dir="auto">There is <strong>only</strong> <strong><code>1</code></strong> concerned zone, of <strong>consecutive</strong> <strong><code>&lt;H2&gt;.......&lt;/H2&gt;</code></strong> blocks, located <strong>right after</strong> the <strong><code>&lt;H1&gt;.......&lt;/H1&gt;</code></strong> block</p>
</li>
<li>
<p dir="auto">The <strong>text</strong> of these <strong><code>&lt;H2&gt;.......&lt;/H2&gt;</code></strong> blocks must be copied <strong>before</strong> the <strong>last</strong> line of your file which contains the string <strong><code>Please E-Mail us</code></strong></p>
</li>
<li>
<p dir="auto">And that your <em>INPUT</em> text is :</p>
</li>
</ul>
<pre><code class="language-diff">&lt;H1........&gt;Heading1&lt;/H1&gt;
&lt;H2........&gt;Some text&lt;/H2&gt;
&lt;H2........&gt;Different text&lt;/H2&gt;
&lt;H2........&gt;Altogether different text&lt;/H2&gt;
Some paragraphs here
&lt;/P&gt; (or &lt;/ul&gt;)
&lt;P..........&gt;&lt;span..........&gt;&lt;b&gt;Please E-mail us&lt;/b&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H2........&gt;Heading that should not be reproduced&lt;/H2&gt;
Some paragraphs here
&lt;/ul&gt; (or &lt;/P&gt;)
&lt;P..........&gt;&lt;b&gt;&lt;span..........&gt;Please E-mail us&lt;/span&gt;&lt;/b&gt;&lt;/P&gt;
</code></pre>
<p dir="auto">Note : Each <strong><code>&lt;H2&gt;..........&lt;/H2&gt;</code></strong> line may be <strong>preceded</strong> and/or <strong>followed</strong> with <strong>tabulation</strong> and/or <strong>space</strong> characters</p>
<p dir="auto">Then :</p>
<ul>
<li>
<p dir="auto">Open a <strong>new</strong> tab</p>
</li>
<li>
<p dir="auto">Paste the above <em>INPUT</em> text in this <strong>new</strong> tab</p>
</li>
<li>
<p dir="auto">Open the <strong>Replace</strong> dialog ( <strong><code>Ctrl + H</code></strong> )</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> mode and tick the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">Follow the <strong>road map</strong>, below</p>
</li>
</ul>
<p dir="auto">Note : I’ll use the <strong>free-spacing</strong> mode, <strong><code>(?x)</code></strong>, in order to <strong>easily</strong> identify the main parts of the <strong>search</strong> regexes</p>
<hr />
<p dir="auto">With the <strong>first</strong> regex S/R, below, we’ll place the line <strong><code>@@@</code></strong> right <strong>before</strong> the <strong>last</strong> line of the file containing the string <strong><code>Please E-mail us</code></strong></p>
<p dir="auto">SEARCH <strong><code>(?xsi) \A .+ \K (?= ^ &lt;P .+ Please \x20 E-mail \x20 us )</code></strong></p>
<p dir="auto">REPLACE <strong><code>@@@\r\n</code></strong></p>
<p dir="auto">So, we get this <strong>temporary</strong> <em>OUTPUT</em> :</p>
<pre><code class="language-diff">&lt;H1........&gt;Heading1&lt;/H1&gt;
&lt;H2........&gt;Some text&lt;/H2&gt;
&lt;H2........&gt;Different text&lt;/H2&gt;
&lt;H2........&gt;Altogether different text&lt;/H2&gt;
Some paragraphs here
&lt;/P&gt; (or &lt;/ul&gt;)
&lt;P..........&gt;&lt;span..........&gt;&lt;b&gt;Please E-mail us&lt;/b&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H2........&gt;Heading that should not be reproduced&lt;/H2&gt;
Some paragraphs here
&lt;/ul&gt; (or &lt;/P&gt;)
@@@
&lt;P..........&gt;&lt;b&gt;&lt;span..........&gt;Please E-mail us&lt;/span&gt;&lt;/b&gt;&lt;/P&gt;
</code></pre>
<hr />
<p dir="auto">With the <strong>second</strong> regex S/R, below, we’ll recopy <strong>all</strong> the <strong><code>&lt;H2&gt;.......&lt;/H2&gt;</code></strong> lines, located <strong>right after</strong> the <strong><code>&lt;H1&gt;.....&lt;/H1&gt;</code></strong> block, just <strong>before</strong> the <strong>delimiter</strong> line <strong><code>@@@</code></strong></p>
<p dir="auto">SEARCH <strong><code>(?xsi) (?&lt;= &lt;/H1&gt; \r\n ) ( \s* (?: &lt;H2.+?&gt; .+? &lt;/H2&gt; \s* )+ ) ^ .+ \K (?= @@@ \R)</code></strong></p>
<p dir="auto">REPLACE <strong><code>\1</code></strong></p>
<p dir="auto">And the obtain this <strong>temporary</strong> <em>OUTPUT</em> :</p>
<pre><code class="language-diff">&lt;H1........&gt;Heading1&lt;/H1&gt;
&lt;H2........&gt;Some text&lt;/H2&gt;
&lt;H2........&gt;Different text&lt;/H2&gt;
&lt;H2........&gt;Altogether different text&lt;/H2&gt;
Some paragraphs here
&lt;/P&gt; (or &lt;/ul&gt;)
&lt;P..........&gt;&lt;span..........&gt;&lt;b&gt;Please E-mail us&lt;/b&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H2........&gt;Heading that should not be reproduced&lt;/H2&gt;
Some paragraphs here
&lt;/ul&gt; (or &lt;/P&gt;)
&lt;H2........&gt;Some text&lt;/H2&gt;
&lt;H2........&gt;Different text&lt;/H2&gt;
&lt;H2........&gt;Altogether different text&lt;/H2&gt;
@@@
&lt;P..........&gt;&lt;b&gt;&lt;span..........&gt;Please E-mail us&lt;/span&gt;&lt;/b&gt;&lt;/P&gt;
</code></pre>
<p dir="auto">Note that the line <strong><code>&lt;H2........&gt;Heading that should not be reproduced&lt;/H2&gt;</code></strong>, which is <strong>not</strong> consecutive to the other <strong><code>H2</code></strong> lines, is <strong>not</strong> re-copied, as expected !</p>
<hr />
<p dir="auto">Now, with the <strong>third</strong> regex S/R, below, we’ll just rewrite the <strong>text</strong> of <strong>all</strong> these <strong><code>&lt;H2&gt;.....&lt;/H2&gt;</code></strong> blocks, in a <strong>single</strong> line :</p>
<p dir="auto">SEARCH <strong><code>(?xi-s) .+ &gt; (.+) &lt;/H2&gt; \h* \R (?= ( (?: \h* &lt;H2 .+ \R )+ )? @@@ \R )</code></strong></p>
<p dir="auto">REPLACE <strong><code>We have a \1?2, :.</code></strong></p>
<p dir="auto">We get the <strong>temporary</strong> <em>OUTPUT</em> :</p>
<pre><code class="language-diff">&lt;H1........&gt;Heading1&lt;/H1&gt;
&lt;H2........&gt;Some text&lt;/H2&gt;
&lt;H2........&gt;Different text&lt;/H2&gt;
&lt;H2........&gt;Altogether different text&lt;/H2&gt;
Some paragraphs here
&lt;/P&gt; (or &lt;/ul&gt;)
&lt;P..........&gt;&lt;span..........&gt;&lt;b&gt;Please E-mail us&lt;/b&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H2........&gt;Heading that should not be reproduced&lt;/H2&gt;
Some paragraphs here
&lt;/ul&gt; (or &lt;/P&gt;)
We have a Some text, We have a Different text, We have a Altogether different text.@@@
&lt;P..........&gt;&lt;b&gt;&lt;span..........&gt;Please E-mail us&lt;/span&gt;&lt;/b&gt;&lt;/P&gt;
</code></pre>
<hr />
<p dir="auto">Finally, with the <strong>fourth</strong> regex S/R , below, we simply add the <strong>leading</strong> <strong><code>&lt;P........&gt;</code></strong> part and delete the <strong><code>@@@</code></strong> string, alltogether</p>
<p dir="auto">SEARCH <strong><code>(?x-s) ^ ( .+) @@@ $</code></strong></p>
<p dir="auto">REPLACE <strong><code>&lt;P whatever you need &gt;\1</code></strong></p>
<p dir="auto">And here is your <strong>expected</strong> <em>OUTPUT</em> text :</p>
<pre><code class="language-diff">&lt;H1........&gt;Heading1&lt;/H1&gt;
&lt;H2........&gt;Some text&lt;/H2&gt;
&lt;H2........&gt;Different text&lt;/H2&gt;
&lt;H2........&gt;Altogether different text&lt;/H2&gt;
Some paragraphs here
&lt;/P&gt; (or &lt;/ul&gt;)
&lt;P..........&gt;&lt;span..........&gt;&lt;b&gt;Please E-mail us&lt;/b&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H2........&gt;Heading that should not be reproduced&lt;/H2&gt;
Some paragraphs here
&lt;/ul&gt; (or &lt;/P&gt;)
&lt;P whatever you need &gt;We have a Some text, We have a Different text, We have a Altogether different text.
&lt;P..........&gt;&lt;b&gt;&lt;span..........&gt;Please E-mail us&lt;/span&gt;&lt;/b&gt;&lt;/P&gt;
</code></pre>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/82282</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/82282</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 05 Dec 2022 19:29:29 GMT</pubDate></item><item><title><![CDATA[Reply to How to copy the Headings, add some text before it and reproduce that just before some unique text on Sun, 04 Dec 2022 14:40:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> <code>(?s)\A.+?\K((&lt;h2.+?&lt;/h2&gt;\R)+).*\K(?=&lt;p.*?Please\s*E-mail\s*us)</code> helped find the <code>&lt;p...........&gt;</code> string just before the last occurrence of, “Please E-mail us”. Thanks for the help!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/82246</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/82246</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Sun, 04 Dec 2022 14:40:59 GMT</pubDate></item><item><title><![CDATA[Reply to How to copy the Headings, add some text before it and reproduce that just before some unique text on Sun, 04 Dec 2022 12:20:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> <code>&lt;p...&gt;We have a $1,&lt;/p&gt;\x20$2</code> is what I used in the replace field (for your information)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/82242</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/82242</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Sun, 04 Dec 2022 12:20:21 GMT</pubDate></item><item><title><![CDATA[Reply to How to copy the Headings, add some text before it and reproduce that just before some unique text on Sun, 04 Dec 2022 11:37:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> <code>(?s)\A.+?\K((&lt;h2.+?&lt;/h2&gt;\R)+).*\K(?=Please\s*E-mail\s*us)</code> finds the first <code>&lt;H2......&gt;</code> to <code>&lt;/H2&gt;</code> block and puts it just before the last occurrence of, “Please Email us” text but I want it to come even before, that is, before the <code>&lt;p........&gt;</code> string. I tried <code>(?s)\A.+?\K((&lt;h2.+?&lt;/h2&gt;\R)+).*\K(?=Please\s*E-mail\s*us)(?&lt;=&lt;p[^]&gt;)</code> without any success.  Now I need some help. Please help!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/82235</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/82235</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Sun, 04 Dec 2022 11:37:48 GMT</pubDate></item><item><title><![CDATA[Reply to How to copy the Headings, add some text before it and reproduce that just before some unique text on Sun, 04 Dec 2022 06:14:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> the RegEx, <code>(?s)\A.+?\K((&lt;h2.+?&lt;/h2&gt;\R)+).*\K(Please\s*E-mail\s*us)(?&lt;=&lt;p[^]&gt;)</code> is invalid. I however, want a solution desperately. Please help with the correct RegEx for that! I will manage the removal of the, <code>&lt;H2..............&gt;</code> and <code>&lt;/H2&gt;</code> on my own (using find <code>(We have a\x20)&lt;H2.*?&gt;(.*?)&lt;/H2&gt;</code> and replace with <code>$1, $2</code>)<br />
Anyone can help. Please help!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/82225</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/82225</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Sun, 04 Dec 2022 06:14:00 GMT</pubDate></item><item><title><![CDATA[Reply to How to copy the Headings, add some text before it and reproduce that just before some unique text on Sat, 03 Dec 2022 22:17:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> the RegEx <code>(?s)\A.+?\K((&lt;h2.+?&lt;/h2&gt;\R)+).+\K(Please\s*E-mail\s*us)(?&lt;=&lt;p[^]&gt;)</code> will probably find what I want with the <code>&lt;H2.........&gt;</code> and <code>&lt;/H2&gt;</code> and then I can probably use <code>We have a $1, $3</code> in the Replace field. Then I should remove the <code>&lt;H2.........&gt;</code> and <code>&lt;/H2&gt;</code> with another RegEx, right? Find <code>(We have a )&lt;H2.*?&gt;(.*?)&lt;/H2&gt;</code> and replace with <code>$1 $2</code> to remove the <code>&lt;H2.........&gt;</code> and <code>&lt;/H2&gt;</code> in the final results.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/82221</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/82221</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Sat, 03 Dec 2022 22:17:23 GMT</pubDate></item><item><title><![CDATA[Reply to How to copy the Headings, add some text before it and reproduce that just before some unique text on Sat, 03 Dec 2022 19:46:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a> said in <a href="/post/82219">How to copy the Headings, add some text before it and reproduce that just before some unique text</a>:</p>
<blockquote>
<p dir="auto">but gave up</p>
</blockquote>
<p dir="auto">There is the biggest problem you’ve faced so far.  And only you can help you with that problem.</p>
<blockquote>
<p dir="auto">tried to do something on my own …  I have 400 files</p>
</blockquote>
<p dir="auto">And yet, you didn’t show what you tried, despite the advice given in the search-replace template.</p>
<p dir="auto">The <em>correct</em> advice is: if you have more than a handful of text files in the same format, they should have been converted into a database (and 400 pages is way more than a handful).  The HTML then becomes a report that you generate from the database, rather than the main storage.  It’s much simpler to edit a single template that gets applied to all the data in the database than it is to make the same change to hundreds of pages.  Given that you’ve had multiple requests like this already (all apparently on the same set of HTML files), it would be a truly good use of your time to split it out into a database and do that.  (In the HTML world, those databases are often called “Content Management Systems” or CMS.)</p>
<p dir="auto">That said, I am doubtful you will put in the effort to do it right, and instead expect that we give you a regex that does it.</p>
<p dir="auto">Well, I won’t do that – at least not everything – because I doubt you’d actually learn anything if I just handed you the solution, and it would thus be a lot of effort on my part to get things “just right”, only to have you come back in a few days with another similar problem that you expect us to solve for you.  But what I will do is say that if it were me, I would break the problem into multiple steps.</p>
<ol>
<li>Identify the place in all the files where you want to insert the text.  Figure out a regex that will place a simple identifiable sequence (like <code>☺</code>, it just has to be something that will only occur once in each file) where you want to insert the text – probably even with the prefix, like <code>&lt;p...&gt;We have a  ☺&lt;/p&gt;</code></li>
<li>Assuming all the <code>&lt;H2&gt;</code> data is on contiguous lines like you’ve shown, then I’ll give you a regex that will take everything from the first <code>&lt;H2...&gt;</code> to the last <code>&lt;/H2&gt;</code> near the top, and put it where the ☺ used to be:<br />
FIND = <code>(?-s)((&lt;H2.*?&lt;/H2&gt;\s*)+)(?s).*?\K☺</code><br />
REPLACE = <code>☺$1☹</code></li>
<li>Now you have the data between a ☺ and ☹, but with the extra <code>&lt;H2...&gt;</code> and <code>&lt;/H2&gt;</code> tags in your way.  This means you have a “begin” and “end”, where you want to make a change just between those.  Our <a href="/topic/22673/faq-desk-generic-regular-expression-regex-formulas">generic regex FAQ</a> lists just such a topic, <a href="https://community.notepad-plus-plus.org/topic/22690/generic-regex-replacing-in-a-specific-zone-of-text">“Replacing in a specific zone of text”</a> .  Follow the formula in that post, where ☺ is your start-of-range marker and ☹ is your end-of-range marker, and you want to search for something like <code>&lt;H2.*?&gt;\s*</code> or <code>&lt;/H2&gt;\s*</code> and replace with empty string.  (You might have to do it once for each if you cannot figure out the combined regex that deletes both the open and close H2 tags in one, though there are multiple variants that could do it.)</li>
<li>Once that’s done, you can delete the ☺ and ☹ in all the files</li>
</ol>
<p dir="auto">The only way to learn regex is by doing.  You have been shown the documentation multiple times.  At this point, you need to learn how to do the regex on your own, because you have gone beyond the 1-2 freebies for a newbie, and it’s doubtful that most of the regulars will bother answering you until you start showing more effort in your questions.  Good luck.</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://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regular-expressions-regex-documentation">FAQ: Where to find regular expressions (regex) documentation</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>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/82220</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/82220</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 03 Dec 2022 19:46:01 GMT</pubDate></item><item><title><![CDATA[Reply to How to copy the Headings, add some text before it and reproduce that just before some unique text on Sat, 03 Dec 2022 19:00:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> I tried to do something on my own but gave up because I couldn’t. If someone can help, please do! I have 400 files, so it will be difficult to edit each file separately</p>
]]></description><link>https://community.notepad-plus-plus.org/post/82219</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/82219</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Sat, 03 Dec 2022 19:00:19 GMT</pubDate></item><item><title><![CDATA[Reply to How to copy the Headings, add some text before it and reproduce that just before some unique text on Sat, 03 Dec 2022 18:36:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a></p>
<h4>Please note:</h4>
<p dir="auto">This Community Forum is not a data transformation service; you should not expect to be able to always say “I have data like X and want it to look like Y” and have us do all the work for you. If you are new to the Forum, and new to regular expressions, we will often give help on the first one or two data-transformation questions, especially if they are well-asked and you show a willingness to learn; and we will point you to the documentation where you can learn how to do the data transformations for yourself in the future. But if you repeatedly ask us to do your work for you, you will find that the patience of usually-helpful Community members wears thin. The best way to learn regular expressions is by experimenting with them yourself, and getting a feel for how they work; having us spoon-feed you the answers without you putting in the effort doesn’t help you in the long term and is uninteresting and annoying for us.</p>
<h4>USEFUL REFERENCES</h4>
<ul>
<li><a href="https://community.notepad-plus-plus.org/topic/15765">Where to find regular expressions (regex) documentation</a></li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/82218</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/82218</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 03 Dec 2022 18:36:43 GMT</pubDate></item><item><title><![CDATA[Reply to How to copy the Headings, add some text before it and reproduce that just before some unique text on Sat, 03 Dec 2022 18:40:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a> the <code>&lt;b&gt;</code> and <code>&lt;span.............&gt;</code> have exchanged places in some files (out of multiple files of a folder). Heading 2, that is, the text between <code>&lt;H2..........&gt;</code> and <code>&lt;/H2&gt;</code> is not limited to 3 lines in some files (out of multiple files of a folder) but I want all the text that is found between <code>&lt;H2..........&gt;</code> and <code>&lt;/H2&gt;</code> on alll the lines to be reproduced as explained above.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/82217</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/82217</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Sat, 03 Dec 2022 18:40:06 GMT</pubDate></item></channel></rss>