<?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[deplace a block to an other place]]></title><description><![CDATA[<p dir="auto">hello<br />
i have a lot of html files with inside<br />
&lt;noscript class"text" lang=“example”&gt;<br />
line1<br />
line2<br />
line3<br />
line4<br />
&lt;/noscript&gt;<br />
in each html file i have a noscript tag with 4 or 5 lines inside, but for each file the lines are different<br />
i would copy all this noscript block to an other place in the same html file for all my html file</p>
<p dir="auto">is there a ways for notpad++ understand to copy all wht it find inside the noscript tag of a file in an oter place of the same file?</p>
<p dir="auto">what solution?<br />
thanks a lot</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/13869/deplace-a-block-to-an-other-place</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 22:29:08 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/13869.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 24 May 2017 14:24:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to deplace a block to an other place on Sun, 02 Jul 2017 12:37:47 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <strong>All</strong>,</p>
<p dir="auto">I’m back for additional information, about <strong><code>lazy</code></strong>, <strong><code>greedy</code></strong> and <strong><code>possessive</code></strong> <strong>quantifiers</strong>. it’s fundamental to, correctly, understand the <strong>differences</strong>, between these <strong>3</strong> types of <strong>quantifiers</strong> !</p>
<p dir="auto">So, let’s consider the simple text <strong>12345ABCDE</strong>, in a <strong>new</strong> tab</p>
<p dir="auto">How the <strong>regex engine</strong> interprets, for instance, the regex <strong><code>\w{1,10}[A-Z]{5}</code></strong>, with the <strong><code>greedy</code></strong> <strong>quantifier</strong> <strong><code>{1,10}</code></strong> ?. Well :</p>
<ul>
<li>
<p dir="auto">It, first, tries to match the <strong>LONGEST</strong> range of <strong><code>\w</code></strong> =&gt; <strong>10 Word</strong> characters. But, the part <strong><code>[A-Z]{5}</code></strong> CANNOT match anything</p>
</li>
<li>
<p dir="auto">Then, it <strong>backtracks</strong> and tries the <strong>first 9 Words</strong> characters. Again, the part <strong><code>[A-Z]{5}</code></strong> does <strong>NOT</strong> match the <strong>E</strong> letter</p>
</li>
<li>
<p dir="auto">Then, it <strong>backtracks</strong> and tries the <strong>first 8 Words</strong> characters. Again, the part <strong><code>[A-Z]{5}</code></strong> does <strong>NOT</strong> match the <strong>DE</strong> letters</p>
</li>
<li>
<p dir="auto">Then, it <strong>backtracks</strong> and tries the <strong>first 7 Words</strong> characters. Again, the part <strong><code>[A-Z]{5}</code></strong> does <strong>NOT</strong> match the <strong>CDE</strong> letters</p>
</li>
<li>
<p dir="auto">Then, it <strong>backtracks</strong> and tries the <strong>first 6 Words</strong> characters. Again, the part <strong><code>[A-Z]{5}</code></strong> does <strong>NOT</strong> match the <strong>BCDE</strong> letters</p>
</li>
<li>
<p dir="auto">Then, it <strong>backtracks</strong> and tries the <strong>first 5 Words</strong> characters. This time, the part <strong><code>[A-Z]{5}</code></strong> <strong>DOES</strong> match the <strong>ABCDE</strong> letters</p>
</li>
</ul>
<p dir="auto">=&gt; After the <strong>backtracking</strong> phase, <strong>all</strong> the text is <strong>matched</strong> and selected !</p>
<hr />
<p dir="auto">Now, how the <strong>regex engine</strong> interprets the regex <strong><code>\w{1,10}?[A-Z]{5}</code></strong>, with the <strong><code>lazy</code></strong> <strong>quantifier</strong> <strong><code>{1,10}?</code></strong> ?</p>
<ul>
<li>
<p dir="auto">It, first, tries to match the <strong>SHORTEST</strong> range of <strong><code>\w</code></strong> =&gt; <strong>1 Word</strong> character. But, the part <strong><code>[A-Z]{5}</code></strong> CANNOT match the <strong>2345ABCDE</strong> string</p>
</li>
<li>
<p dir="auto">Then, it <strong>backtracks</strong> and tries the <strong>first 2 Words</strong> characters. Again, the part <strong><code>[A-Z]{5}</code></strong> does <strong>NOT</strong> match the <strong>345ABCDE</strong> string</p>
</li>
<li>
<p dir="auto">Then, it <strong>backtracks</strong> and tries the <strong>first 3 Words</strong> characters. Again, the part <strong><code>[A-Z]{5}</code></strong> does <strong>NOT</strong> match the <strong>45ABCDE</strong> string</p>
</li>
<li>
<p dir="auto">Then, it <strong>backtracks</strong> and tries the <strong>first 4 Words</strong> characters. Again, the part <strong><code>[A-Z]{5}</code></strong> does <strong>NOT</strong> match the <strong>5ABCDE</strong> string</p>
</li>
<li>
<p dir="auto">Then, it <strong>backtracks</strong> and tries the <strong>first 5 Words</strong> characters. This time, the part <strong><code>[A-Z]{5}</code></strong> <strong>DOES</strong> match the <strong>ABCDE</strong> letters</p>
</li>
</ul>
<p dir="auto">=&gt; After the <strong>backtracking</strong> phase, <strong>all</strong> the text is <strong>matched</strong> and selected !</p>
<p dir="auto"><strong>Note</strong> : Instead of the <strong>English</strong> werb <strong>backtrack</strong>,  the verb <strong>fortrack</strong> would be more <strong>adapted</strong> ! Sorry, <strong>English</strong> isn’t my <strong>mother tongue</strong> !</p>
<hr />
<p dir="auto">Finally, how the <strong>regex engine</strong> interprets the regex <strong><code>\w{1,10}+[A-Z]{5}</code></strong>, with the <strong><code>possessive</code></strong> <strong>quantifier</strong> <strong><code>{1,10}+</code></strong> ?</p>
<ul>
<li>
<p dir="auto">It, first, tries to match the <strong>LONGEST</strong> range of <strong><code>\w</code></strong> =&gt; <strong>10 Word</strong> characters. But, the part <strong><code>[A-Z]{5}</code></strong> CANNOT match anything</p>
</li>
<li>
<p dir="auto">Now, the normal process would be to <strong>backtrack</strong>. But this action is <strong>forbidden</strong>, due to the <strong><code>possessive</code></strong> quantifier ! In other words, once a <strong>match</strong> has been found, for the first part <strong><code>\w{1,10}+</code></strong>, the <strong>following</strong> parts of the regex <strong>must</strong> match the <strong>remaining</strong> of the text. But, as the <strong>first</strong> regex part have consumed <strong>all</strong> the text, the part <strong><code>[A-Z]{5}</code></strong> will <strong>NEVER</strong> match anything !<br />
So, the <strong>overall</strong> match <strong>fails</strong> and you get the normal message <strong>Find: Can’t find the text “<code>\w{1,10}+[A-Z]{5}</code>”</strong></p>
</li>
</ul>
<hr />
<p dir="auto">Using, again, the same example <strong>12345ABCDE</strong>, in a <strong>new</strong> tab, it’s easy to verify that :</p>
<ul>
<li>
<p dir="auto">The regex <strong><code>\w{1,10}</code></strong> matches the <strong>longest Word</strong> characters range =&gt; The <strong>whole</strong> string  <strong>12345ABCDE</strong> is matched</p>
</li>
<li>
<p dir="auto">The regex <strong><code>\w{1,10}?</code></strong> matches the <strong>shortest Word</strong> characters range =&gt; The <strong>1 Word</strong> character is matched, then the <strong>2</strong> digit and so on…</p>
</li>
<li>
<p dir="auto">The regex <strong><code>\w{1,10}+</code></strong> matches the <strong>longest Word</strong> characters range =&gt; The <strong>whole</strong> string <strong>12345ABCDE</strong> is matched, too !</p>
</li>
</ul>
<hr />
<p dir="auto">So, to sum up, here is, below, a list of <strong>all</strong> the <strong>quantifiers</strong> :</p>
<pre><code class="language-ruby">    GREEDY     quantifiers   :    *  ( = {0,} )       + ( = {1,} )      ?  ( = {0,1} )      {n}        {n,}        {m,n}

    LAZY       quantifiers   :    *? ( = {0,}? )     +? ( = {1,}? )     ?? ( = {0,1}? )     {n}?       {n,}?       {m,n}?

    POSSESSIVE quantifiers   :    *+ ( = {0,}+ )     ++ ( = {1,}+ )     ?+ ( = {0,1}+ )     {n}+       {n,}+       {m,n}+
</code></pre>
<p dir="auto"><strong>Remark</strong> : The <strong>two</strong> <strong><code>{n}?</code></strong> and <strong><code>{n}+</code></strong> syntaxes, although <strong>correct</strong>, are <strong>useless</strong>, as the syntax <strong><code>{n}</code></strong> could be qualified as an <strong><code>EXACT</code></strong> quantifier !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/25322</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/25322</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 02 Jul 2017 12:37:47 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Sun, 02 Jul 2017 06:16:24 GMT]]></title><description><![CDATA[<p dir="auto">Hello Guy<br />
i just see your answer<br />
a great thanks, yes work with   (?s)(&lt;a.+?&lt;/a&gt;\R?)<br />
a real thanks for all your explanations, i already succeed to do wonderful things with them.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/25316</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/25316</guid><dc:creator><![CDATA[Pouemes44]]></dc:creator><pubDate>Sun, 02 Jul 2017 06:16:24 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Wed, 28 Jun 2017 20:22:25 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/pouemes44" aria-label="Profile: pouemes44">@<bdi>pouemes44</bdi></a>,</p>
<ul>
<li>In the regex <strong><code>(?s)(^Block \d+.+?End block)(.*?)(^Block \d+.+?End block)</code></strong>, of my <strong>previous</strong> post, the part <strong><code>(.*?)</code></strong> represents the <strong>shortest</strong> range of characters, even <strong>empty</strong>, stored as <strong>group 2</strong>, between the <strong>two consecutive</strong> blocks of text, that are to be <strong>swapped</strong> !</li>
</ul>
<p dir="auto">Now, if we consider the <strong>HTML</strong> example text, below :</p>
<pre><code class="language-html">&lt;td height="15"&gt;
    &lt;font size="2" color="black" face="arial, verdana"&gt;&lt;b&gt;Lire un message / dossier : Reçus&lt;/b&gt;&lt;/font&gt; 
&lt;/td&gt;

&lt;td height="15"&gt;
    &lt;font size="2" color="black" face="arial, verdana"&gt;&lt;b&gt;Lire un message / dossier : Reçus&lt;/b&gt;&lt;/font&gt; 
&lt;/td&gt;
</code></pre>
<p dir="auto">Beware about the <strong>two</strong> different behaviours :</p>
<ul>
<li>
<p dir="auto">The regex <strong><code>(?s)&lt;td.+&lt;/td&gt;</code></strong> looks for the <strong>largest</strong> range of characters <strong><code>.+</code></strong>, between the strings <strong>&lt;td</strong> and <strong>&lt;/td&gt;</strong> =&gt; It matches <strong>all</strong> the text, at once</p>
</li>
<li>
<p dir="auto">The regex <strong><code>(?s)&lt;td.+?&lt;/td&gt;</code></strong> looks for the <strong>shortest</strong> range of characters <strong><code>.+?</code></strong>, between the strings <strong>&lt;td</strong> and <strong>&lt;/td&gt;</strong> =&gt; it matches, successively, each block <strong>&lt;td…&lt;/td&gt;</strong></p>
</li>
</ul>
<hr />
<p dir="auto">Now, regarding your <strong>HTML</strong> text :</p>
<pre><code class="language-html">&lt;a href=“mypage.htm” title=page"&gt;page&lt;/a&gt;
</code></pre>
<p dir="auto">I suppose that you do <strong>NOT</strong> get a <strong>match</strong>, using the regex <strong><code>(?s)(&lt;a.+?&lt;/a&gt;\R)</code></strong>, because, probably, it’s the <strong>last</strong> line of your current file, which is <strong>NOT</strong> followed by any <strong>End of line</strong> character !</p>
<p dir="auto">Indeed, in that case, the ending part <strong><code>\R</code></strong> <strong>cannot</strong> match anything. So the overall match <strong>fails</strong> :-((</p>
<p dir="auto"><strong>Two</strong> solutions :</p>
<ul>
<li>
<p dir="auto">Use the regex <strong><code>(?s)(&lt;a.+?&lt;/a&gt;\R?)</code></strong>. With that syntax, the <strong><code>\R</code></strong> part is <strong>optional</strong></p>
</li>
<li>
<p dir="auto">Add a <strong>line break</strong> to this <strong>last</strong> line !</p>
</li>
</ul>
<p dir="auto">For a better visualization of the <strong>End of line</strong> characters, just click on the <strong><code>¶</code></strong> icone</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/25232</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/25232</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 28 Jun 2017 20:22:25 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Sun, 25 Jun 2017 11:26:48 GMT]]></title><description><![CDATA[<p dir="auto">i have an other question<br />
if i search (?s)(&lt;h1.+?&lt;/h1&gt;\R) i got a result in my file</p>
<p dir="auto">but if i search (?s)(&lt;a.+?&lt;/a&gt;\R) to get &lt;a href=“mypage.htm” title=page"&gt;page&lt;/a&gt;   i got nothing why? what is wrong?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/25148</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/25148</guid><dc:creator><![CDATA[Pouemes44]]></dc:creator><pubDate>Sun, 25 Jun 2017 11:26:48 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Sun, 25 Jun 2017 11:25:45 GMT]]></title><description><![CDATA[<p dir="auto">a great thanks guy<br />
that was this part (.*?) i missed</p>
]]></description><link>https://community.notepad-plus-plus.org/post/25146</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/25146</guid><dc:creator><![CDATA[Pouemes44]]></dc:creator><pubDate>Sun, 25 Jun 2017 11:25:45 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Sat, 24 Jun 2017 13:40:01 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/pouemes44" aria-label="Profile: pouemes44">@<bdi>pouemes44</bdi></a>, and <strong>All</strong>,</p>
<p dir="auto">Here is, below, the <strong>general</strong> method in order to <strong>switch</strong> <strong>two consecutive</strong> blocks of text, separated, or <strong>not</strong>, by some <strong>stuff</strong> text</p>
<p dir="auto">So let’s start with the <strong>example</strong> text, below :</p>
<pre><code class="language-diff">bla
bla
bla
Block 1
of
some
text
End block
bla bla
bla bla
bla bla
bla bla
Block 2
with some
other text
End block
bla bla bla
bla bla bla
bla bla bla
</code></pre>
<p dir="auto">To <strong>correctly</strong> determine the <strong>limits</strong> of your <strong>block</strong> of text, whatever it is, you, <strong>necessarily</strong>, need to know :</p>
<ul>
<li>
<p dir="auto">The location of the <strong>beginning</strong> of your block. In our example, I suppose that it’s the regex <strong><code>^Block \d+</code></strong></p>
</li>
<li>
<p dir="auto">The location of the <strong>end</strong> of your block. In our case, I suppose it’s the string <strong><code>End block</code></strong></p>
</li>
</ul>
<p dir="auto"><strong><code>IMPORTANT</code></strong> : In our example, the <strong>second</strong> block has the <strong>same</strong> limits as <strong>Block 1</strong>, but it could, perfectly, have some <strong>other limit</strong> definitions !</p>
<p dir="auto">So, from the <strong>above</strong> definitions, we can build the regex <strong>S/R</strong>, below :</p>
<p dir="auto">SEARCH <strong><code>(?s)(^Block \d+.+?End block)(.*?)(^Block \d+.+?End block)</code></strong></p>
<p dir="auto">REPLACE <strong><code>\3\2\1</code></strong></p>
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">The leading <strong><code>(?s)</code></strong> <strong>modifier</strong> means that the special <strong>dot</strong> character represents, absolutely, <strong>any single</strong> character. Now :</p>
</li>
<li>
<p dir="auto">The <strong>first</strong> part, <strong><code>(^Block \d+.+?End block</code></strong>, represents a <strong>complete</strong> individual block of text, stored as <strong>group 1</strong></p>
</li>
<li>
<p dir="auto">The <strong>third</strong> part, <strong><code>(^Block \d+.+?End block)</code></strong>, stands, again, for an other complete block of text, stored as <strong>group 3</strong></p>
</li>
<li>
<p dir="auto">The <strong>middle</strong> part, <strong><code>(.*?)</code></strong>, is the <strong>shortest</strong> range, even <strong>empty</strong>, of <strong>any</strong> character, between these <strong>two consecutive</strong> blocks of text</p>
</li>
<li>
<p dir="auto">In <strong>replacement</strong>, we just switch the group <strong>1</strong> and <strong>3</strong>, with group <strong>2</strong> standing as a <strong>pivot</strong></p>
</li>
</ul>
<p dir="auto">And, after a click on the <strong>Replace All</strong> button, you should get the <strong>expected</strong> text , below :</p>
<pre><code class="language-diff">bla
bla
bla
Block 2
with some
other text
End block
bla bla
bla bla
bla bla
bla bla
Block 1
of
some
text
End block
bla bla bla
bla bla bla
bla bla bla
</code></pre>
<p dir="auto">Just note that, if the <strong>two</strong> blocks are <strong>strictly consecutive</strong>, without the <strong>bla bla</strong> lines, as below :</p>
<pre><code class="language-diff">bla
bla
bla
Block 1
of
some
text
End block
Block 2
with some
other text
End block
bla bla bla
bla bla bla
bla bla bla
</code></pre>
<p dir="auto">We <strong>still</strong> get the <strong>correct</strong> modified text :</p>
<pre><code class="language-diff">bla
bla
bla
Block 2
with some
other text
End block
Block 1
of
some
text
End block
bla bla bla
bla bla bla
bla bla bla
</code></pre>
<hr />
<p dir="auto">Now, <strong>Pouemes44</strong>, let’s apply this <strong>general</strong> method to your <strong>particular</strong> problem :</p>
<p dir="auto">The <strong>general</strong> template, of your <strong>first</strong> block, is :</p>
<pre><code class="language-diff">&lt;noscript......
......
......
......
......
&lt;/noscript&gt;
</code></pre>
<p dir="auto">The <strong>general</strong> template, of your <strong>second</strong> block, is :</p>
<pre><code class="language-diff">&lt;img.........
.......
.......
.......
style="display:none;"&gt;&lt;/div&gt;
</code></pre>
<p dir="auto">Therefore, the <strong>corresponding</strong> regex S/R, in your case, is, obviously :</p>
<p dir="auto">SEARCH <strong><code>(?s)(^&lt;noscript.+?&lt;/noscript&gt;)(.*?)(^&lt;img.+?style="display:none;"&gt;&lt;/div&gt;)</code></strong></p>
<p dir="auto">REPLACE <strong><code>\3\2\1</code></strong></p>
<p dir="auto">So, considering <strong>your</strong> example, below :</p>
<pre><code class="language-diff">1.html
&lt;noscript class"text" lang="example"&gt;
line1
line2
line3
line4
&lt;/noscript&gt;
some text…
etc…
etc
&lt;img… and …style="display:none;"&gt;&lt;/div&gt;

2.html
&lt;noscript class"text" lang="otherexample"&gt;
otherline1
otherline2
otherline3
otherline4
&lt;/noscript&gt;
othersome text…
etc…
etc etc
&lt;img… other and …style="display:none;"&gt;&lt;/div&gt;
</code></pre>
<p dir="auto">After performing the <strong>above</strong> S/R, you’ll get the modified text, as <strong>expected to</strong> :</p>
<pre><code class="language-diff">1.html
&lt;img… and …style="display:none;"&gt;&lt;/div&gt;
some text…
etc…
etc
&lt;noscript class"text" lang="example"&gt;
line1
line2
line3
line4
&lt;/noscript&gt;

2.html
&lt;img… other and …style="display:none;"&gt;&lt;/div&gt;
othersome text…
etc…
etc etc
&lt;noscript class"text" lang="otherexample"&gt;
otherline1
otherline2
otherline3
otherline4
&lt;/noscript&gt;
</code></pre>
<p dir="auto">Et voilà !!</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> : Beware that, on our <strong>NodeBB</strong> site, text, containing starting and ending usual <strong>simple</strong> and <strong>double</strong> quotes, are changed into their <strong>Unicode</strong> equivalents, below :</p>
<ul>
<li>
<p dir="auto"><strong>Starting simple</strong> quote <strong>‘</strong>, of <strong>Unicode</strong> code-point <strong><code>\x{2018}</code></strong>, instead of the <strong>single</strong> quote sign <strong><code>'</code></strong> ( <strong><code>x{0027</code></strong> )</p>
</li>
<li>
<p dir="auto"><strong>Ending simple</strong> quote <strong>’</strong>, of <strong>Unicode</strong> code-point <strong><code>\x{2019}</code></strong>, instead of the <strong>single</strong> quote sign <strong><code>'</code></strong> ( <strong><code>x{0027</code></strong> )</p>
</li>
<li>
<p dir="auto"><strong>Starting double</strong> quote <strong>“</strong>, of <strong>Unicode</strong> code-point <strong><code>\x{201C}</code></strong>, instead of the <strong>double</strong> quote sign <strong><code>"</code></strong> ( <strong><code>x{0022</code></strong> )</p>
</li>
<li>
<p dir="auto"><strong>Ending double</strong> quote <strong>”</strong>, of <strong>Unicode</strong> code-point <strong><code>\x{201D}</code></strong>, instead of the <strong>double</strong> quote sign <strong><code>"</code></strong> ( <strong><code>x{0022</code></strong> )</p>
</li>
</ul>
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>For <strong>ANSI</strong> encoded texts, to avoid the nasty message <strong>Find: Invalid regular expression</strong>, the **correct regex syntaxes are, respectively, <strong><code>\x91</code></strong>, <strong><code>\x92</code></strong>, <strong><code>\x93</code></strong> and <strong><code>\x94</code></strong></li>
</ul>
<p dir="auto">BTW :</p>
<ul>
<li>
<p dir="auto">Remember that the <strong><code>\x{####}</code></strong> regex syntax can be used :</p>
<ul>
<li>
<p dir="auto">For search of a <strong>true ASCII</strong> character, between <strong><code>\x{0000}</code></strong> and <strong><code>\x{007F}</code></strong>, in <strong>ANSI</strong> encoded files</p>
</li>
<li>
<p dir="auto">For search of <strong>any Unicode</strong> character, between <strong><code>\x{0000}</code></strong> and <strong><code>\x{FFFF}</code></strong>, in <strong>UNICODE</strong> encoded files</p>
</li>
</ul>
</li>
<li>
<p dir="auto">Remember that the <strong><code>\x{##}</code></strong> regex syntax can be used :</p>
<ul>
<li>
<p dir="auto">For search of a <strong>true ASCII</strong> character, between <strong><code>\x{00}</code></strong> and <strong><code>\x{7F}</code></strong>, in <strong>ANSI</strong> encoded files</p>
</li>
<li>
<p dir="auto">For search of <strong>any Unicode</strong> character, between <strong><code>\x{00}</code></strong> and <strong><code>\x{FF}</code></strong>, in <strong>UNICODE</strong> encoded files</p>
</li>
</ul>
</li>
<li>
<p dir="auto">To end with, remember that the <strong><code>\x##</code></strong>  regex syntax can be used :</p>
<ul>
<li>For search of <strong>any Unicode</strong> character, between <strong><code>\x00</code></strong> and <strong><code>\xFF</code></strong>, either, in <strong>UNICODE</strong> or <strong>ANSI</strong> encoded files</li>
</ul>
</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/25116</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/25116</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 24 Jun 2017 13:40:01 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Sat, 24 Jun 2017 10:12:26 GMT]]></title><description><![CDATA[<p dir="auto">Hello<br />
do you think that its possible to move a block not to the bottom but to the top?<br />
i dont succeed<br />
i mean that in this example, how to move &lt;img etc… and …style=“display:none;”&gt;&lt;/div&gt; just before &lt;noscript class"text" lang=“example”&gt;</p>
<p dir="auto">1.html<br />
&lt;noscript class"text" lang=“example”&gt;<br />
line1<br />
line2<br />
line3<br />
line4<br />
&lt;/noscript&gt;<br />
some text…<br />
etc…<br />
etc<br />
&lt;img… and …style=“display:none;”&gt;&lt;/div&gt;</p>
<p dir="auto">2.html<br />
&lt;noscript class"text" lang=“otherexample”&gt;<br />
otherline1<br />
otherline2<br />
otherline3<br />
otherline4<br />
&lt;/noscript&gt;<br />
othersome text…<br />
etc…<br />
etc etc<br />
&lt;img… other and …style=“display:none;”&gt;&lt;/div&gt;</p>
]]></description><link>https://community.notepad-plus-plus.org/post/25108</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/25108</guid><dc:creator><![CDATA[Pouemes44]]></dc:creator><pubDate>Sat, 24 Jun 2017 10:12:26 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Tue, 30 May 2017 18:17:41 GMT]]></title><description><![CDATA[<p dir="auto">i would to say thanks to all, i have well succeed to move my block and begin to understand a bit notepad++<br />
is there a way to send private messages on notepad community, i dont find how</p>
]]></description><link>https://community.notepad-plus-plus.org/post/24708</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/24708</guid><dc:creator><![CDATA[Pouemes44]]></dc:creator><pubDate>Tue, 30 May 2017 18:17:41 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Sun, 28 May 2017 18:19:38 GMT]]></title><description><![CDATA[<p dir="auto">at the end it must be a eol character, ok i understand now</p>
]]></description><link>https://community.notepad-plus-plus.org/post/24657</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/24657</guid><dc:creator><![CDATA[Pouemes44]]></dc:creator><pubDate>Sun, 28 May 2017 18:19:38 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Sat, 27 May 2017 22:25:08 GMT]]></title><description><![CDATA[<p dir="auto">@kat75</p>
<p dir="auto">without having the data we cannot say for sure what went wrong.<br />
So, in theory, the hyperlink regex would match everyhting within the tag if<br />
closing tags is directly followed by an eol char (no space)<br />
and the image regex would match starting with <strong>&lt;img class</strong> followed by<br />
anything until <strong>”&gt;</strong> appears, followed directly by an eol char.</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/24649</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/24649</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Sat, 27 May 2017 22:25:08 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Sat, 27 May 2017 19:29:44 GMT]]></title><description><![CDATA[<p dir="auto">hello<br />
i have a question<br />
i am trying to understand how what has given to me guy works<br />
(?s)(&lt;noscript class.+?&lt;/noscript&gt;\R)(.+?style=“display:none;”&gt;&lt;/div&gt;\R)</p>
<p dir="auto">if i try to get an other sequence between a a tag by example… i got nothing! what is wrong?</p>
<p dir="auto">(?s)(&lt;a href.+?&lt;/a&gt;\R)</p>
<p dir="auto">with an img tag it doesnt take the first “&gt; why? :-)  thanks<br />
(?s)(&lt;img class.+?”&gt;\R)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/24644</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/24644</guid><dc:creator><![CDATA[Pouemes44]]></dc:creator><pubDate>Sat, 27 May 2017 19:29:44 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Fri, 26 May 2017 19:10:45 GMT]]></title><description><![CDATA[<p dir="auto">thanks glen for the link<br />
i shall try to learn regular expressions, there are really possibilities</p>
]]></description><link>https://community.notepad-plus-plus.org/post/24626</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/24626</guid><dc:creator><![CDATA[Pouemes44]]></dc:creator><pubDate>Fri, 26 May 2017 19:10:45 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Fri, 26 May 2017 15:00:48 GMT]]></title><description><![CDATA[<p dir="auto">@kat75 Guy often performs magic with Regular Expressions. :) And I believe he speaks French also.</p>
<p dir="auto">A good starting point for Regular Expressions is <a href="http://www.regular-expressions.info/" rel="nofollow ugc">http://www.regular-expressions.info/</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/24622</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/24622</guid><dc:creator><![CDATA[glennfromiowa]]></dc:creator><pubDate>Fri, 26 May 2017 15:00:48 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Fri, 26 May 2017 05:34:35 GMT]]></title><description><![CDATA[<p dir="auto">hello<br />
just awake<br />
thanks peter, claudia and guy<br />
guy its magic, seems to work fine, i didnt thank that it was so easily possible<br />
i must know how it works and donwload a previous version of notepad++ i have v7.41<br />
really fantastic<br />
a great thanks</p>
]]></description><link>https://community.notepad-plus-plus.org/post/24609</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/24609</guid><dc:creator><![CDATA[Pouemes44]]></dc:creator><pubDate>Fri, 26 May 2017 05:34:35 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Fri, 26 May 2017 00:58:07 GMT]]></title><description><![CDATA[<p dir="auto">Hi, @kat75,</p>
<p dir="auto">Here is my <strong>contribution</strong>, to your problem ;-)</p>
<p dir="auto">Let’s suppose you have <strong>two</strong> files <strong>1.html</strong> and <strong>2.html</strong>, as below :</p>
<pre><code class="language-diff">&lt;!-- 1.html --&gt;
Some text
before the
"noscript" tag
&lt;noscript class"text" lang="example"&gt;
line1
line2
line3
line4
&lt;/noscript&gt;
bla
bla
bla
blah
&lt;img… and …style="display:none;"&gt;&lt;/div&gt;
And some text,
located after
............
&lt;noscript&gt;
............
</code></pre>
<p dir="auto">and</p>
<pre><code class="language-diff">&lt;!-- 2.html --&gt;
bla
bla
&lt;noscript&gt;
bla

&lt;noscript class"text" lang="otherexample"&gt;
Other line1
Other line2
Other line3
Other line4
Other line5
&lt;/noscript&gt;
Other text…
etc…
etc…
etc…
&lt;img… other and …style="display:none;"&gt;&lt;/div&gt;
Other Text
..........
till the END of the file
</code></pre>
<ul>
<li>
<p dir="auto">Move <strong>back</strong>, at the <strong>very beginning</strong> of current file ( <strong><code>Ctrl + Origin</code></strong> )</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>Regular expression</strong> search mode</p>
</li>
<li>
<p dir="auto">In the <strong>Search what:</strong> box, type in the regex <strong><code>(?s)(&lt;noscript class.+?&lt;/noscript&gt;\R)(.+?style="display:none;"&gt;&lt;/div&gt;\R)</code></strong></p>
</li>
<li>
<p dir="auto">In the <strong>Replace with:</strong> box, type in the regex <strong><code>\2\1</code></strong></p>
</li>
<li>
<p dir="auto">Click on the <strong>Replace All</strong> button</p>
</li>
</ul>
<p dir="auto">=&gt; Your two <strong>html</strong> files should be <strong>modified</strong>, as below :</p>
<pre><code class="language-diff">&lt;!-- 1.html --&gt;
Some text
before the
"noscript" tag
bla
bla
bla
blah
&lt;img… and …style="display:none;"&gt;&lt;/div&gt;
&lt;noscript class"text" lang="example"&gt;
line1
line2
line3
line4
&lt;/noscript&gt;
And some text,
located after
............
&lt;noscript&gt;
............
</code></pre>
<p dir="auto">and</p>
<pre><code class="language-diff">&lt;!-- 2.html --&gt;
bla
bla
&lt;noscript&gt;
bla

Other text…
etc…
etc…
etc…
&lt;img… other and …style="display:none;"&gt;&lt;/div&gt;
&lt;noscript class"text" lang="otherexample"&gt;
Other line1
Other line2
Other line3
Other line4
Other line5
&lt;/noscript&gt;
Other Text
..........
till the END of the file
</code></pre>
<p dir="auto">I do hope that it’s the kind of <strong>Search/Replacement</strong> what you expect to !</p>
<hr />
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">I suppose that the <strong>ending</strong> tag <strong><code>&lt;/noscript&gt;</code></strong> <strong>ends</strong> the current line, in your <strong>html</strong> files</p>
</li>
<li>
<p dir="auto">I suppose the the text <strong><code>&lt;img………style="display:none;"&gt;&lt;/div&gt;</code></strong> <strong>ends</strong> the current line, too</p>
</li>
<li>
<p dir="auto">As usual, the <strong><code>(?s)</code></strong> modifier means that a <strong>dot</strong> regex character represents <strong>any single</strong> character ( <strong>Standard</strong> or <strong>EOL</strong> chars )</p>
</li>
<li>
<p dir="auto">Then, the part <strong><code>&lt;noscript class.+?&lt;/noscript&gt;\R</code></strong> looks for any <strong>complete</strong> individual <strong>noscript</strong> block ( Note that the form <strong><code>.+?</code></strong> stands for the <strong>smallest non-null</strong> range of characters, between the two strings <strong>&lt;noscript class</strong> and <strong>&lt;/noscript&gt;</strong> )</p>
</li>
<li>
<p dir="auto">This <strong><code>noscript</code></strong> block, with the <strong>final</strong> EOL characters ( <strong><code>\R</code></strong> ), is stored as <strong>group 1</strong>, due to the enclosed <strong>parentheses</strong></p>
</li>
<li>
<p dir="auto">Finally the part <strong><code>.+?style="display:none;"&gt;&lt;/div&gt;\R</code></strong> searches for the <strong>smallest</strong> range of characters till the string <strong>style=“display:none;”&gt;&lt;/div&gt;</strong></p>
</li>
<li>
<p dir="auto">Again, this block of lines, with the <strong>final</strong> EOL characters ( <strong><code>\R</code></strong> ), is stored as <strong>group 2</strong>, due to the enclosed <strong>parentheses</strong></p>
</li>
<li>
<p dir="auto">In <strong>replacement</strong>, we just rewrite these <strong>two</strong> groups, in a <strong>reverse</strong> order ! ( <strong><code>\2\1</code></strong> )</p>
</li>
</ul>
<hr />
<p dir="auto"><strong>Remarks</strong> :</p>
<ul>
<li>
<p dir="auto">As previously said, for <strong>400</strong> files about, you should use the <strong>Replace in Files</strong> feature ( <strong><code>Ctrl + Shift + F</code></strong> )</p>
</li>
<li>
<p dir="auto">Group all your <strong>html</strong> files, which have to be <strong>modified</strong>, in a <strong>particular</strong> folder</p>
</li>
<li>
<p dir="auto">Do a <strong><code>BACKUP</code></strong> of this folder ( One never knows ! )</p>
</li>
<li>
<p dir="auto">Fill up the <strong>Filters</strong> and <strong>Directory</strong> boxes, too</p>
</li>
<li>
<p dir="auto">Click on the <strong>Replace in Files</strong> button, to perform a <strong>global</strong> replacement, on <strong>all</strong> your files</p>
</li>
<li>
<p dir="auto"><strong><code>IMPORTANT</code></strong> : Do <strong>NOT</strong> use the <strong>v7.4</strong> or <strong>v7.4.1</strong> version of N++. Indeed, with these <strong>last</strong> versions, there a <strong>bug</strong>, when <strong>multiple</strong> S/R are performed : a part of the files scanned are <strong>not</strong> changed -:((( Refer to :</p>
</li>
</ul>
<p dir="auto"><a href="https://notepad-plus-plus.org/community/topic/13865/replace-all-in-all-open-documents-problem-in-7-4-1/1" rel="nofollow ugc">https://notepad-plus-plus.org/community/topic/13865/replace-all-in-all-open-documents-problem-in-7-4-1/1</a></p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/24607</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/24607</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 26 May 2017 00:58:07 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Thu, 25 May 2017 21:42:16 GMT]]></title><description><![CDATA[<p dir="auto">A script could look like this, so if you are interested in<br />
a python script solution let me know and we can work it out.</p>
<pre><code># -*- coding: utf-8 -*-

import os
FIND_WHAT = u'FIND_WHAT_REGULAR_EXPRESSION'
REPLACE_WITH = u'REPLACE_WITH_EXPRESSION'

DIRECTORY_OF_FILES = u'THE_DIRECTORY'   # like c:\\temp\\directory - doublebackslash needed

os.chdir(DIRECTORY_OF_FILES)
list_of_files = [x for x in os.listdir('.') if x.endswith('.html')]
for file in list_of_files:
    notepad.open(file)
    editor.rereplace(FIND_WHAT, REPLACE_WITH)
    notepad.save()
    notepad.close()
</code></pre>
<p dir="auto">This script looks for html files in a defined directory.<br />
If your files are under certain different subdirectories we need to modify the code.</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/24602</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/24602</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Thu, 25 May 2017 21:42:16 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Thu, 25 May 2017 21:40:42 GMT]]></title><description><![CDATA[<p dir="auto">a great thanks peterjones<br />
perhaps the solution for me will be to joint each file x2 then remove the lines i dont want</p>
<p dir="auto">in dos do you know how to join in one command each file of a directoty with itself<br />
for one file its easy<br />
copy name.htm +name.htm d:\temp\name.htm</p>
<p dir="auto">time to sleep for me i shall search for this tomorrow<br />
*do you know this french free texteditor <a href="http://www.gbesoft.fr/gbepad.php" rel="nofollow ugc">http://www.gbesoft.fr/gbepad.php</a><br />
its not bad, i use it in association wth notepad++</p>
]]></description><link>https://community.notepad-plus-plus.org/post/24601</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/24601</guid><dc:creator><![CDATA[Pouemes44]]></dc:creator><pubDate>Thu, 25 May 2017 21:40:42 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Thu, 25 May 2017 20:52:42 GMT]]></title><description><![CDATA[<p dir="auto">What you said you tried for the search/replace didn’t quite match my examples, but that’s okay.  I will customize it based on what you’ve given me:</p>
<ul>
<li>Find = <code>(&lt;noscript[^&gt;]*?class=*["“][^"“”]*?["”][^&gt;]*?lang=["“][^"“”]*?["”]&gt;.*?&lt;/noscript&gt;\R*)(.*?)(&lt;img[^&gt;]*?style=["“]display:none;["”]&gt;&lt;/div&gt;)</code></li>
<li>Replace = <code>$2$3\r\n$1</code></li>
<li>Assumptions/Changes
<ul>
<li>I used <code>[&gt;]*?</code> to include various unknown attributes, assuming they don’t contain a <code>&gt;</code>: if they do, <strong>this won’t work</strong></li>
<li>I used expressions that were ambivalent about smart quotes <code>“”</code> and normal quotes <code>""</code>, because you switched back and forth.  Personally, I doubt there are actual smart quotes for the attributes in your HTML, but this allows my expression to work on exactly the text that you put in your examples, or on text that I think is well-formed HTML</li>
<li>Similary, I used <code>class=*</code> to allow <code>class="text"</code> or <code>class"text"</code>, because I believe <code>class"text"</code> is invalid HTML, but I wanted the expression to work on your example text, just in case you are processing invalid HTML.</li>
<li>I allowed anything (or, rather, any non-quote character) inside the <code>class="text"</code> and <code>lang="example"</code>, so it’s not restricted to exactly <code>text</code> or <code>example</code>: I saw you had <code>example</code> and <code>otherexample</code>, so I wanted to make sure that <code>text</code> and <code>othertext</code> would both work, too.</li>
<li>Since there is a language barrier, I am assuming by “to move = déplacer” you mean “move it, completely deleting the block from the beginning, and instead putting it after the <code>&lt;img display:none;"&gt;...&lt;/div&gt;</code>”</li>
</ul>
</li>
</ul>
<p dir="auto">So that should work manually on the two example files you gave me: when I copy/pasted from your post into two files, then ran the exact FIND and REPLACE listed above once per file, it successfully found the <code>noscript</code> and moved it after the <code>img</code>.</p>
<p dir="auto"><strong>HOWEVER</strong> (and this is a big “however”), that won’t be fun for hundreds of files.  I tried having NPP open with <em>just</em> the two example files, then I used the <code>Replace All in All Opened Documents</code> option, and it replaced it in both files.  Then I copied the originals so I had 100 files, and I opened them <strong>ALL</strong> in Notepad++, and the “Replace All in ALl Opened Documents” still did what I wanted.  So it <em>might</em> work if you just open all 400 hundred files, though there’s no guarantee: I might do it in smaller groups of 50-100 files, depending on how large your files are.</p>
<p dir="auto">If you are going to be frequently making changes like this, but the rules are changing, I highly recommend learning a scripting language: I would have done this from the command line with Perl; many others here would have used Python or Lua.  The benefit of the latter two is that there are plugins for automating Notepad++ using <a href="http://sourceforge.net/projects/npppythonscript/files/Python%20Script%201.0.8.0/PythonScript_1.0.8.0.msi/download" rel="nofollow ugc">the Python Script Plugin</a> or <a href="https://github.com/dail8859/LuaScript" rel="nofollow ugc">the LuaScript Plugin</a>.  <a class="plugin-mentions-user plugin-mentions-a" href="/user/claudia-frank" aria-label="Profile: Claudia-Frank">@<bdi>Claudia-Frank</bdi></a> could proably write the Python Script to open each of the 400 files, apply my regex, and save and close them without much difficulty.  Unfortunately, I am not a Python expert, so it would take me hours more than I have available to muddle through it.  (It may even be that <a class="plugin-mentions-user plugin-mentions-a" href="/user/go2to" aria-label="Profile: go2to">@<bdi>go2to</bdi></a>’s ecobyte-link provides such a scripting language, or a simple interface for applying a particular regex to a multitude of files.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/24598</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/24598</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 25 May 2017 20:52:42 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Thu, 25 May 2017 19:46:01 GMT]]></title><description><![CDATA[<p dir="auto">hello all<br />
a lot of thanks for your answer<br />
i am french and not perfectly fluent in english<br />
thanks peterjones<br />
i have tried<br />
Find What = (&lt;noscript.<em>?&gt;.</em>?&lt;/noscript&gt;)(.*)(^-=-=-= INSERT TEXT AFTER THIS LINE =-=-=-$)<br />
Replace With = $1$2$3\r\n$1</p>
<p dir="auto">my files are like this</p>
<p dir="auto">1.html<br />
&lt;noscript class"text" lang=“example”&gt;<br />
line1<br />
line2<br />
line3<br />
line4<br />
&lt;/noscript&gt;<br />
some text…<br />
etc…<br />
etc<br />
&lt;img…  and …style=“display:none;”&gt;&lt;/div&gt;</p>
<p dir="auto">2.html<br />
&lt;noscript class"text" lang=“otherexample”&gt;<br />
otherline1<br />
otherline2<br />
otherline3<br />
otherline4<br />
&lt;/noscript&gt;<br />
othersome text…<br />
etc…<br />
etc etc<br />
&lt;img… other and …style=“display:none;”&gt;&lt;/div&gt;</p>
<p dir="auto">i would to move (to move = déplacer in french) in each file all this  &lt;noscript… tag with the tag (generally inside there are 4 lines… can be 5)) i would to move it in each page just after style=“display:none;”&gt;&lt;/div&gt;<br />
and i would to do this for more than 400 files in knowing that all my noscript are differents in each page<br />
warning; in each file i have 2 noscript tag one is just &lt;noscript&gt; the other is like &lt;noscript class"text" lang=“example”&gt;<br />
its this second that i would to move</p>
<p dir="auto">not easy :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/24596</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/24596</guid><dc:creator><![CDATA[Pouemes44]]></dc:creator><pubDate>Thu, 25 May 2017 19:46:01 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Thu, 25 May 2017 16:05:27 GMT]]></title><description><![CDATA[<p dir="auto">Copy/paste. :-)  I have an always-open scratchpad in NPP that includes some often-used characters:</p>
<pre><code>Checkboxes: `☐ ☑ ☒ ✓ ✗`
</code></pre>
<p dir="auto">Windows’ <code>charmap.exe</code> &gt; Character Set: <code>Unicode</code> &gt; Group By: <code>Unicode Subrange</code> &gt; <code>Symbols &amp; Dingbats</code> has the checkboxes in the first row when I’m using Font: <code>DejaVu Sans Mono</code>.</p>
<p dir="auto">I also like using <a href="http://www.fileformat.info/info/unicode/char/search.htm" rel="nofollow ugc">http://www.fileformat.info/info/unicode/char/search.htm</a> to find Unicode characters by name or idea (like “arrow” or “box” or “check”).  (I’ve actually got it as one of my custom search engines in Firefox, with the keyword “unicode”, so I just have to type “unicode ballot box” in my address bar to get <a href="http://www.fileformat.info/info/unicode/char/search.htm?q=ballot+box&amp;preview=entity" rel="nofollow ugc">http://www.fileformat.info/info/unicode/char/search.htm?q=ballot+box&amp;preview=entity</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/24579</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/24579</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 25 May 2017 16:05:27 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Thu, 25 May 2017 14:14:05 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></p>
<p dir="auto">How did you make the little checkboxes in text?  That’s pretty cool.  I’ve read about some of the markdown used on this forum, but not all of it is clear to me.  Not that I’m saying the checked-checkboxes are markdown…</p>
<p dir="auto">I’m talking about this:<br />
<code>☑ Regular Expression</code></p>
<p dir="auto">How would one do an empty checkbox as well as a checked one?</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/24576</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/24576</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 25 May 2017 14:14:05 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Wed, 24 May 2017 19:56:00 GMT]]></title><description><![CDATA[<p dir="auto">I know there’s no such word as “deplace”.  Based on the text in the post, “i would copy all this noscript block to another place in the same html file”, I understood that @kat75 wanted to copy text from one place in a document (leaving it there), and also paste it to a second place in the same document.  My post described the steps necessary to semi-manually do it, with automatically selecting the source text.</p>
<p dir="auto">For example, I am assuming @kat75 wanted to take a file like</p>
<pre><code>&lt;noscript class"text" lang=“example”&gt;
line1
line2
line3
line4
&lt;/noscript&gt;

... lots of document ...

&lt;pre&gt;
-=-=-= REPLACE THIS SPECIFIC LINE WITH WHATEVER WAS IN THE EXAMPLE NOSCRIPT =-=-=-
&lt;/pre&gt;
</code></pre>
<p dir="auto">and replace it with</p>
<pre><code>&lt;noscript class"text" lang=“example”&gt;
line1
line2
line3
line4
&lt;/noscript&gt;

... lots of document ...

&lt;pre&gt;
line1
line2
line3
line4
&lt;/pre&gt;
</code></pre>
<p dir="auto">This could be done manually as I described before (using the previous FIND string, manually copying, manually moving the cursor, and manually pasting).</p>
<p dir="auto">Or, as I added, it could be done with a Search and Replace, which I didn’t supply at the time.  I was hoping @kat75 would chime in with more details, so I wouldn’t spend more time on a solution to my interpretation of the problem, without further input…</p>
<p dir="auto">But since you seem to think NPP is not capable of this task, when it is:  Using my new example file above, my interpretation of the resultant file desired would be</p>
<pre><code>&lt;noscript class"text" lang=“example”&gt;
line1
line2
line3
line4
&lt;/noscript&gt;

... lots of document ...

&lt;pre&gt;
line1
line2
line3
line4
&lt;/pre&gt;
</code></pre>
<p dir="auto">This can be accomplished <em>in</em> Notepad++ using a search-and-replace:</p>
<ul>
<li>Find What: <code>(&lt;noscript.*?&gt;\s*)(.*?)(\s*&lt;/noscript&gt;.*)(^-=-=-= REPLACE THIS SPECIFIC LINE WITH WHATEVER WAS IN THE EXAMPLE NOSCRIPT =-=-=-$)</code></li>
<li>Replace with: <code>$1$2$3$2</code></li>
<li><code>☑ Regular Expression</code> and  <code>☑ . matches newline</code></li>
<li><code>REPLACE</code></li>
</ul>
<p dir="auto">If, instead, @kat75 wanted the entire <code>noscript</code>, including the opening and closing tags, a simple modification will do the trick:</p>
<ul>
<li>Find What: <code>(&lt;noscript.*?&gt;.*?&lt;/noscript&gt;)(.*)(^-=-=-= REPLACE THIS SPECIFIC LINE WITH WHATEVER WAS IN THE EXAMPLE NOSCRIPT =-=-=-$)</code></li>
<li>Replace with: <code>$1$2$1</code></li>
<li><code>☑ Regular Expression</code> and  <code>☑ . matches newline</code></li>
<li><code>REPLACE</code></li>
</ul>
<p dir="auto">which would result in</p>
<pre><code>&lt;noscript class"text" lang=“example”&gt;
line1
line2
line3
line4
&lt;/noscript&gt;

... lots of document ...

&lt;pre&gt;
&lt;noscript class"text" lang=“example”&gt;
line1
line2
line3
line4
&lt;/noscript&gt;
&lt;/pre&gt;
</code></pre>
<p dir="auto">If @kat75 wants the <code>noscript</code> contents or the full pair to be able to go <em>after</em> the indicated line rather than replacing it:</p>
<pre><code>&lt;noscript class"text" lang=“example”&gt;
line1
line2
line3
line4
&lt;/noscript&gt;

... lots of document ...

&lt;pre&gt;
-=-=-= INSERT TEXT AFTER THIS LINE =-=-=-
&lt;/pre&gt;
</code></pre>
<p dir="auto">Then to get the contents without the tags, use:</p>
<ul>
<li>Find What = <code>(&lt;noscript.*?&gt;\s*)(.*?)(\s*&lt;/noscript&gt;.*)(^-=-=-= INSERT TEXT AFTER THIS LINE =-=-=-$)</code></li>
<li>Replace With = <code>$1$2$3$4\r\n$2</code></li>
</ul>
<p dir="auto">or to include the <code>noscript</code> tags as well:</p>
<ul>
<li>Find What = <code>(&lt;noscript.*?&gt;.*?&lt;/noscript&gt;)(.*)(^-=-=-= INSERT TEXT AFTER THIS LINE =-=-=-$)</code></li>
<li>Replace With = <code>$1$2$3\r\n$1</code></li>
</ul>
<p dir="auto">If none of these accomplish what @kat75 wants, then @kat75 needs to chime in with example “before” and “after” text, so that we don’t have to guess.</p>
<p dir="auto">(And I’m sure <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> would be able to improve on my regex…)<br />
[edit: added paragraph break]</p>
]]></description><link>https://community.notepad-plus-plus.org/post/24567</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/24567</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 24 May 2017 19:56:00 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Wed, 24 May 2017 19:28:17 GMT]]></title><description><![CDATA[<p dir="auto">@kat75<br />
<a href="http://www.ecobyte.com/replacetext/" rel="nofollow ugc">Replace text between ranges</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/24566</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/24566</guid><dc:creator><![CDATA[go2to]]></dc:creator><pubDate>Wed, 24 May 2017 19:28:17 GMT</pubDate></item><item><title><![CDATA[Reply to deplace a block to an other place on Wed, 24 May 2017 19:06:39 GMT]]></title><description><![CDATA[<h4>Linguistic issue</h4>
<p dir="auto">The OP <em>kat75</em> let us know he had difficulties in English. <em>deplace</em> is not in the English dictionary. I believe he means <em>replace</em> as in <strong>range</strong> <em>search-replace</em>.</p>
<p dir="auto"><em>kat75</em> might want to follow my advice above and google <em>ecobyte replace text</em>. Hopefully, <em>kat75</em> has a friend who is fluent in both English and their native language. <em>kat75</em> should experiment with <strong>range</strong> <em>search-replace</em> in a temp directory first.</p>
<p dir="auto">Copy a few html files to <em>C:\Temp</em> and test there until the results are as desired. That’s how I did and everything worked flawlessly.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/24565</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/24565</guid><dc:creator><![CDATA[go2to]]></dc:creator><pubDate>Wed, 24 May 2017 19:06:39 GMT</pubDate></item></channel></rss>