<?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[Want to delete everything like [xxx] including []]]></title><description><![CDATA[<p dir="auto">Hi all,<br />
I have some text which will have some reference in [xx] which I would like to delete.</p>
<p dir="auto">Eg.<br />
Original text: The population is 6000 [1].<br />
Desired text: The population is 6000.</p>
<p dir="auto">And remove [1], there are other similar occurrences like [2] , [3] and so on. And I want to remove all.<br />
I guess I can use search all instances [xx] and replace them with a null. But not know how it can be done in action.</p>
<p dir="auto">Thanks in advance.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/13109/want-to-delete-everything-like-xxx-including</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 10:52:13 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/13109.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Jan 2017 12:00:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Want to delete everything like [xxx] including [] on Mon, 23 Jan 2017 01:00:56 GMT]]></title><description><![CDATA[<p dir="auto">Hello Mr. Guy,</p>
<p dir="auto">I think I see what you mean, although at first I didn’t.  I was trying to type a literal \ followed by x followed by { … followed by } in the box I type in to make a post on this website.  But…that didn’t work correctly in the Preview area.</p>
<p dir="auto">Then it dawned on me that if I type my posting in Notepad++ FIRST (using the Character Panel method), then copy and paste it to the website, it works to make wide         open        spaces!</p>
<p dir="auto">Thank you for your help.<br />
AK</p>
]]></description><link>https://community.notepad-plus-plus.org/post/21147</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/21147</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 23 Jan 2017 01:00:56 GMT</pubDate></item><item><title><![CDATA[Reply to Want to delete everything like [xxx] including [] on Mon, 23 Jan 2017 00:18:16 GMT]]></title><description><![CDATA[<p dir="auto">Hello <strong>Alan</strong>,</p>
<p dir="auto">To write <strong>consecutive</strong> spaces, in <strong>normal</strong> text of posts, on <strong>NodeBB</strong> N++ forum, I replace the common <strong>SPACE</strong> character ( <strong><code>\x{0020}</code></strong> ) by the <strong>NO-BREAK SPACE</strong> character ( <strong><code>\x{00A0}</code></strong> )</p>
<p dir="auto">To write this character, at the <strong>current</strong> cursor location, <strong>TWO</strong> solutions :</p>
<ul>
<li>
<p dir="auto">Select the menu option <strong>Edit &gt; Character Panel</strong> and <strong>double</strong>-click on the line, of <strong>decimal</strong> value <strong>160</strong></p>
</li>
<li>
<p dir="auto">Hold down the <strong>ALT</strong> key and hit, <strong>successively</strong>, on the <strong>four NUMPAD</strong> keys <strong>0</strong>, <strong>1</strong>, <strong>6</strong> and <strong>0</strong>, before releasing the <strong>ALT</strong> key</p>
</li>
</ul>
<p dir="auto"><strong>Remark</strong> :</p>
<ul>
<li>As browsers don’t use, generally, <strong>monospaced</strong> fonts, the <strong>physical</strong> size of a “space” character family, is <strong>smaller</strong> than a <strong>letter</strong> or <strong>digit</strong> size ! Roughly, you need <strong>three consecutive</strong> “space” characters to get the <strong>same</strong> width than a <strong>word</strong> character !</li>
</ul>
<p dir="auto">An example :</p>
<p dir="auto">TEST about the NodeBB displaying of the <strong>NO-BREAK SPACE</strong> character ( <strong><code>\x00A0</code></strong> )</p>
<p dir="auto">12345678901234567890  = A line with digits, <strong>without</strong> any <strong>SPACE</strong> character</p>
<p dir="auto">12 45 78 01 34 67 90  = The <strong>same</strong> line, where <strong>six</strong> digits, have been replaced by a <strong>single SPACE</strong> character =&gt; Line <strong>shorter</strong> than the <strong>first</strong> one</p>
<p dir="auto">12   45   78   01   34   67   90 = The <strong>same</strong> line, where <strong>six</strong> digits, have been replaced by <strong>three SPACE</strong> characters =&gt; <strong>Identical</strong> to the <strong>previous</strong> one</p>
<p dir="auto">12   45   78   01   34   67   90 = The <strong>same</strong> line, where <strong>six</strong> digits, have been replaced by <strong>three NO-BREAK SPACE</strong> characters</p>
<p dir="auto">=&gt; This time, <strong>total spacing</strong> seem to be <strong>kept</strong> !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/21145</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/21145</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 23 Jan 2017 00:18:16 GMT</pubDate></item><item><title><![CDATA[Reply to Want to delete everything like [xxx] including [] on Sun, 22 Jan 2017 14:23:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a></p>
<p dir="auto">Thanks for the information on how to format posts here on this website.  One thing I didn’t see in the documentation is how to separate normal text (not in a codeblock) with some extra whitespace.  For example, if I want to put extra spaces between “a” and “b” here:</p>
<p dir="auto">a                     b</p>
<p dir="auto">So when I typed that line above I put a gob of spaces between the a and the b.  But the preview pane (and when I submit the post, I imagine) simply shows “a b”…single space between.  Is this type of extra whitespacing possible with some extra markup/markdown syntax?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/21141</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/21141</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 22 Jan 2017 14:23:14 GMT</pubDate></item><item><title><![CDATA[Reply to Want to delete everything like [xxx] including [] on Mon, 16 Jan 2017 00:35:58 GMT]]></title><description><![CDATA[<p dir="auto">Hi Guy and Alan,</p>
<p dir="auto">Thank you for your kind help. It is also easier to learn by studying your suggestion along with the web link reference.</p>
<p dir="auto"><code>\[(,?\d+(-\d+)?)+\]</code> is the final one I needed as I noted there is not always a space in front of the reference quote. so I have to omit <code>\x20</code></p>
<p dir="auto">Thank you very much again.</p>
<p dir="auto">Cheers<br />
David</p>
]]></description><link>https://community.notepad-plus-plus.org/post/20954</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/20954</guid><dc:creator><![CDATA[David Chiu]]></dc:creator><pubDate>Mon, 16 Jan 2017 00:35:58 GMT</pubDate></item><item><title><![CDATA[Reply to Want to delete everything like [xxx] including [] on Sun, 15 Jan 2017 20:23:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <strong>David</strong> and <strong>Alan</strong>,</p>
<p dir="auto">See, below, the different ways to get <strong>emphasis</strong> and <strong>blocks</strong> of <strong>code</strong> :</p>
<p dir="auto">*section in italic*                 =&gt;        <em>section in italic</em><br />
**section in bold**             =&gt;         <strong>section in bold</strong><br />
`section of code`                 =&gt;       <code>section of code</code></p>
<p dir="auto">*section`of code` in italic*       =&gt;      <em>section <code>of code</code> in italic</em><br />
**section`of code` in bold**    =&gt;      <strong>section <code>of code</code> in bold</strong></p>
<p dir="auto">....This text needs to be<br />
....indented with four spaces<br />
....characters and preceded with<br />
....a blank line,  in order to be<br />
....seen as a block of code</p>
<p dir="auto">=&gt;</p>
<pre><code>This text needs to be
indented with FOUR spaces
characters and preceded with
a BLANK line,  in order to be
seen as a BLOCK of CODE
</code></pre>
<p dir="auto">For <strong>full</strong> documentation, about <strong>Markdown</strong> syntax, refer to the <strong>link</strong> below :</p>
<p dir="auto"><a href="http://daringfireball.net/projects/markdown/syntax" rel="nofollow ugc">http://daringfireball.net/projects/markdown/syntax</a></p>
<p dir="auto">And, for <strong>emphasis</strong> consult the section :</p>
<p dir="auto"><a href="http://daringfireball.net/projects/markdown/syntax#em" rel="nofollow ugc">http://daringfireball.net/projects/markdown/syntax#em</a></p>
<hr />
<p dir="auto"><strong>David</strong>, I succeeded to find out the <strong>right</strong> regex, in order to match the <strong>eight</strong> the references, below :</p>
<pre><code>References [3] and [123] and [11,13] and [14-16]

References [10,14-16] and [3-15,20-42] and [3,8,12,17] and [1-3,12-18,20-30,43,57,60-70]
</code></pre>
<p dir="auto">So :</p>
<p dir="auto">SEARCH <strong><code>\x20\[(,?\d+(-\d+)?)+\]</code></strong></p>
<p dir="auto">REPLACE <strong><code>EMPTY</code></strong></p>
<p dir="auto"><strong>Note</strong> : I suppose that there is <strong>NOT</strong> any <strong>space</strong> character, inside the <strong>square brackets</strong> area !</p>
<hr />
<p dir="auto"><strong>Alan</strong>, thanks for helping <strong>David</strong>, with your regex <strong><code>\x20\[\d+([,-]\d+)?\]</code></strong>. Indeed, it matches the <strong>first four</strong> examples of reference, above :-) So, it should be OK for <strong>David</strong> ! However, it fails to match the <strong>last four</strong> types of reference. But, certainly, <strong>David</strong> doesn’t need these <strong>complicated</strong> references, anyway !</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/20952</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/20952</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 15 Jan 2017 20:23:36 GMT</pubDate></item><item><title><![CDATA[Reply to Want to delete everything like [xxx] including [] on Sun, 15 Jan 2017 18:35:34 GMT]]></title><description><![CDATA[<p dir="auto">I, too, do not know how <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> obtains the red text in the light-red background here in this forum Community, but I would like to know how to do it myself!</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/david-chiu" aria-label="Profile: David-Chiu">@<bdi>David-Chiu</bdi></a> , you can match your new text with a regular expression of the form:</p>
<pre><code>\x20\[\d+([,-]\d+)?\]
</code></pre>
<p dir="auto">I suppose the next question will be something about how to do [11,12,13] but here is where the learning part comes in!  Read about regular expressions on the reference sites <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> mentioned, and practice!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/20948</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/20948</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 15 Jan 2017 18:35:34 GMT</pubDate></item><item><title><![CDATA[Reply to Want to delete everything like [xxx] including [] on Sun, 15 Jan 2017 17:12:32 GMT]]></title><description><![CDATA[<p dir="auto">Hi Guy038,</p>
<p dir="auto">Thank you for your detailed explanation and I have visited some of your mentioned website. As I am a newbie, I do need some time.</p>
<p dir="auto">The</p>
<p dir="auto">\ [ \ d + \ ]</p>
<p dir="auto">(Sorry I have to break the above code by space and if not, it does not show properly. I don’t know how to do like yours in coloured background.)</p>
<p dir="auto">This works most closely for me, but then I noted some reference is like this [11,13] and [14-16]. And this expression dose not work for these reference quote.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/20947</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/20947</guid><dc:creator><![CDATA[David Chiu]]></dc:creator><pubDate>Sun, 15 Jan 2017 17:12:32 GMT</pubDate></item><item><title><![CDATA[Reply to Want to delete everything like [xxx] including [] on Sun, 15 Jan 2017 16:32:56 GMT]]></title><description><![CDATA[<p dir="auto">Hi <strong>David</strong>,</p>
<p dir="auto">Ah, yes ! I supposed that the reference <strong>always ends</strong> your text. Moreover, I was mistaken about my <strong>previous</strong> regex. The <strong>correct</strong> syntax should have been, as below :</p>
<p dir="auto"><strong><code>\x20\[\d+\](?=\.?$)</code></strong></p>
<ul>
<li>
<p dir="auto">First, this regex looked for a <strong>space</strong> character, of Unicode code-point <strong>U+0032</strong> ( = <strong><code>\x20</code></strong>, in <strong>hexadecimal</strong> ) Of course, I could have shortened it to a simple <strong>space</strong> character ( " " ), but it’s not easy to show that <strong>blank</strong> character, in posts !</p>
</li>
<li>
<p dir="auto">Then, it searched for an <strong>opening square</strong> bracket, <strong><code>\[</code></strong>. As it’s a <strong>special regex</strong> character, it must be <strong>escaped</strong> with an <strong>anti-slash</strong>, <strong><code>\</code></strong>, in order to be taken, <strong>literally</strong></p>
</li>
<li>
<p dir="auto">After, it looked for a <strong>NON-empty</strong> range of <strong>digits</strong> <strong><code>\d+</code></strong>, as the <strong><code>+</code></strong> sign is a <strong>quantifier</strong>, which means from <strong>1</strong> to <strong>n times</strong> ( whatever <strong>n</strong> ), the previous element <strong><code>\d</code></strong></p>
</li>
<li>
<p dir="auto">Then it searched for an <strong>ending square</strong> bracket <strong><code>\]</code></strong>, with the <strong>same</strong> remark as for the <strong><code>[</code></strong> symbol</p>
</li>
<li>
<p dir="auto">Finally, the <strong>overall</strong> match is true ONLY IF the condition <strong><code>(?=\.?$)</code></strong>, called a <strong>positive look-ahead</strong>, is <strong>true</strong>. That condition means that, after the <strong>ending square</strong> bracket, the <strong>end</strong> of line <strong><code>$</code></strong> must be reached, eventually <strong>preceded</strong> by a literal <strong>dot</strong> character, <strong><code>\.?</code></strong> ( Note that <strong><code>?</code></strong> is also a quantifier, which means <strong>0</strong> or <strong>1</strong> time, the <strong>preceding</strong> element <strong><code>\.</code></strong>. Indeed, I thought that the <strong>ending dot</strong> could be <strong>absent</strong> from some of your lines !</p>
</li>
</ul>
<p dir="auto">Of course, if we decide <strong>not</strong> to be so <strong>restrictive</strong>, the <strong>correct</strong> search regex is, simply :</p>
<p dir="auto"><strong><code> \[\d+\]</code></strong> , with a <strong>SPACE</strong> character, <strong>before</strong> the first <strong>antislash</strong> symbol</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong>,</p>
<p dir="auto">If you’re a <strong>newby</strong>, about <strong>regular</strong> expressions <strong>concept</strong> and <strong>syntax</strong>, begin with that article, in <strong>N++ Wiki</strong> :</p>
<p dir="auto"><a href="http://docs.notepad-plus-plus.org/index.php/Regular_Expressions" rel="nofollow ugc">http://docs.notepad-plus-plus.org/index.php/Regular_Expressions</a></p>
<p dir="auto">In addition, you’ll find <strong>good documentation</strong>, about the new <strong>Boost C++ Regex library, v1.55.0</strong> ( similar to the <strong>PERL Regular Common Expressions, v1.48.0</strong> ), used by <strong><code>Notepad++</code></strong>, <em>since its <strong><code>6.0</code></strong> version</em>, at the <strong>TWO</strong> addresses below :</p>
<p dir="auto"><a href="http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html" rel="nofollow ugc">http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html</a></p>
<p dir="auto"><a href="http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html" rel="nofollow ugc">http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html</a></p>
<ul>
<li>
<p dir="auto">The <strong>FIRST</strong> link explains the <strong>syntax</strong>, of regular expressions, in the <strong>SEARCH</strong> part</p>
</li>
<li>
<p dir="auto">The <strong>SECOND</strong> link explains the <strong>syntax</strong>, of regular expressions, in the <strong>REPLACEMENT</strong> part</p>
</li>
</ul>
<hr />
<p dir="auto">You may, also, look for <strong>valuable</strong> informations, on the <strong>sites</strong>, below :</p>
<p dir="auto"><a href="http://www.regular-expressions.info" rel="nofollow ugc">http://www.regular-expressions.info</a></p>
<p dir="auto"><a href="http://www.rexegg.com" rel="nofollow ugc">http://www.rexegg.com</a></p>
<p dir="auto"><a href="http://perldoc.perl.org/perlre.html" rel="nofollow ugc">http://perldoc.perl.org/perlre.html</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/20946</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/20946</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 15 Jan 2017 16:32:56 GMT</pubDate></item><item><title><![CDATA[Reply to Want to delete everything like [xxx] including [] on Sun, 15 Jan 2017 16:03:45 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Scott. Will provide more precise and enough information next time.</p>
<p dir="auto">All is well now. Thank you all !</p>
]]></description><link>https://community.notepad-plus-plus.org/post/20945</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/20945</guid><dc:creator><![CDATA[David Chiu]]></dc:creator><pubDate>Sun, 15 Jan 2017 16:03:45 GMT</pubDate></item><item><title><![CDATA[Reply to Want to delete everything like [xxx] including [] on Sun, 15 Jan 2017 15:20:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/david-chiu" aria-label="Profile: David-Chiu">@<bdi>David-Chiu</bdi></a></p>
<p dir="auto">In asking a question here, you have to be careful to provide enough information to receive good help.  <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> 's solution works for your original data and not for your new example data because he was mislead by contraints on the context that were untrue.</p>
<p dir="auto">That being said, modifying his “Find what” regex to <strong>\x20[\d+]</strong> will likely work for your new data (as well as the old).  The translation into English of this regex is (loosely): find a space followed by a left bracket followed by an integer number (of one or more digits) followed by a right bracket.  Replacing this with nothing deletes what was matched with the find.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/20943</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/20943</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Sun, 15 Jan 2017 15:20:25 GMT</pubDate></item><item><title><![CDATA[Reply to Want to delete everything like [xxx] including [] on Sun, 15 Jan 2017 15:16:23 GMT]]></title><description><![CDATA[<p dir="auto">I just tried and experiment myself and found that if I use the following, it works. But i am not sure if it works for a large file size normally.</p>
<p dir="auto">I use [\d+] in the Fine what zone. I am not sure what \20x, (?=.?$) for.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/20942</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/20942</guid><dc:creator><![CDATA[David Chiu]]></dc:creator><pubDate>Sun, 15 Jan 2017 15:16:23 GMT</pubDate></item><item><title><![CDATA[Reply to Want to delete everything like [xxx] including [] on Sun, 15 Jan 2017 14:35:18 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, Guy038,</p>
<p dir="auto">I followed the instruction, but it does not work.</p>
<p dir="auto">It finds no occurrence.</p>
<p dir="auto">My sample text is copied and pasted below:</p>
<p dir="auto">In a 2004 revision of headache classification, the term “Complicated migraine” was replaced by “Complications of migraine” [3]. The 2004 and 2013 revisions also reclassified some syndromes unique to children that historically were considered manifestations of migraine.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/20941</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/20941</guid><dc:creator><![CDATA[David Chiu]]></dc:creator><pubDate>Sun, 15 Jan 2017 14:35:18 GMT</pubDate></item><item><title><![CDATA[Reply to Want to delete everything like [xxx] including [] on Sun, 15 Jan 2017 13:01:10 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <strong>David</strong>,</p>
<p dir="auto">I’ve got to be <strong>out</strong> this afternoon. So, here is a quick <strong>S/R</strong> solution that implies <strong>regular expressions</strong>. I’ll give you some <strong>details</strong>, if necessary, in a <strong>next</strong> post !</p>
<ul>
<li>
<p dir="auto">Preferably, move back to the <strong>very beginning</strong> of your 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">Type the regex <strong><code>\x20\[\d+\](?=.?$)</code></strong> in the <strong>Find what:</strong> zone</p>
</li>
<li>
<p dir="auto">Leave the <strong>Replace with:</strong> zone <strong><code>EMPTY</code></strong></p>
</li>
<li>
<p dir="auto">Select the <strong>Regular expression</strong> search mode ( IMPORTANT )</p>
</li>
<li>
<p dir="auto">Click on the <strong>Replace All</strong> button</p>
</li>
</ul>
<p dir="auto">Et voilà !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/20937</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/20937</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 15 Jan 2017 13:01:10 GMT</pubDate></item></channel></rss>