<?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 find two or more non-consecutive tabs in a line?]]></title><description><![CDATA[<p dir="auto">Hi all,<br />
How can I find a line that contains 2 or more <strong>non-consecutive</strong> tabs? One of the tabs may or may not be at the beginning and/or at the end of the line.</p>
<p dir="auto">I tried to adopt a regex for a similar task, but with no success: " ^.<em>(\t</em>){2,}.<em>\r\n ", "^.</em>(?:\t*){2,}\r\n" ,</p>
<p dir="auto">Thanks in advance!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/17385/how-to-find-two-or-more-non-consecutive-tabs-in-a-line</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 03:13:55 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/17385.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 Apr 2019 12:19:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to find two or more non-consecutive tabs in a line? on Mon, 08 Apr 2019 23:22:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/glossar" aria-label="Profile: glossar">@<bdi>glossar</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/meta-chuh" aria-label="Profile: meta-chuh">@<bdi>meta-chuh</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">Fundamentally, the new <strong>Alan</strong>’s solution and mine give the <strong>same right</strong> results, i.e. to match any <strong>non-empty</strong> line which does <strong>not</strong> contain a <strong>tabulation</strong> character !</p>
<p dir="auto">By the way, we, <strong>both</strong>, forget to add the leading in-line-<strong>modifier</strong> <strong><code>(?-s)</code></strong> to be sure that, even you <strong>previously</strong> ticked the <strong><code>. matches newline</code></strong> option, the regex engine will suppose that any <strong><code>.</code></strong> char does match a <strong>single standard</strong> character, only !</p>
<p dir="auto">So, our <strong>two</strong> solutions should be :</p>
<p dir="auto">Alan : <strong><code>(?-s)^((?!\t).)+$</code></strong></p>
<p dir="auto">Guy :  <strong><code>(?-s)(?!.*\t)^.+</code></strong></p>
<hr />
<p dir="auto">However, note that the <strong>logic</strong>, underlying these <strong><code>2</code></strong> regular expressions, is a bit <strong>different</strong> :</p>
<ul>
<li>
<p dir="auto">In the <strong>Alan</strong>’s regex, from beginning of line ( <strong><code>^</code></strong> ), the regex engine matches for <strong>one or more standard</strong> characters, till the <strong>end</strong> of line ( <strong><code>$</code></strong> ), ONLY IF <strong>each</strong> standard character encountered is <strong>not</strong> a <strong>tabulation</strong> character, due to the <strong>negative look-ahead</strong> <strong><code>(?!\t)</code></strong>, located right <strong>before</strong> the <strong><code>.</code></strong> regex character</p>
</li>
<li>
<p dir="auto">In the <strong>Guy</strong>’s regex, the regex engine matches for <strong>all</strong> the <strong>standard</strong> characters of a line, ( <strong><code>^.+</code></strong> ), ONLY IF ( implicitly at <strong>beginning</strong> of line ) it <strong>cannot</strong> find a <strong>tabulation</strong> character further on, at <strong>any</strong> position of <strong>current</strong> line, due to the <strong>negative look-ahead</strong> <strong><code>(?!.*\t)</code></strong></p>
</li>
</ul>
<p dir="auto">I did a <strong>test</strong> with a file of <strong><code>2,500,000</code></strong> lines, half of which contained <strong>1 tabulation</strong> character and, clearly, the <strong>Alan</strong>’s version is <strong>faster</strong> ! ( <strong><code>2 mn 15 s</code></strong> for <strong>Alan</strong> instead of <strong><code>5mn</code></strong> for <strong>my</strong> version )</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42066</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42066</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 08 Apr 2019 23:22:00 GMT</pubDate></item><item><title><![CDATA[Reply to How to find two or more non-consecutive tabs in a line? on Mon, 08 Apr 2019 12:38:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/glossar" aria-label="Profile: glossar">@<bdi>glossar</bdi></a> said:</p>
<blockquote>
<p dir="auto">Is it possible for you to modify this regex so shat it should skip blank lines</p>
</blockquote>
<p dir="auto">So we should look at what the original means:</p>
<p dir="auto"><code>^((?!\t).)*$</code></p>
<p dir="auto">It says (basically) to match zero or more occurrences (because of the use of <code>*</code>) of anything that is not TAB.  If we change it to match ONE or more occurrences (we’re going to change <code>*</code> to <code>+</code> to do this) of anything that is not TAB).  Because we have to match at least ONE thing, empty/blank lines are no longer matched:</p>
<p dir="auto"><code>^((?!\t).)+$</code></p>
<p dir="auto">Which is basically what <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said, but I wanted to elaborate a bit!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42054</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42054</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 08 Apr 2019 12:38:43 GMT</pubDate></item><item><title><![CDATA[Reply to How to find two or more non-consecutive tabs in a line? on Sun, 07 Apr 2019 22:25:10 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/glossar" aria-label="Profile: glossar">@<bdi>glossar</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/meta-chuh" aria-label="Profile: meta-chuh">@<bdi>meta-chuh</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">I may be <strong>mistaken</strong> but I think that the regex <strong><code>(?!.*\t)^.+</code></strong>, of my <strong>previous</strong> post, just meet your <strong>needs</strong>, doesn’t it ?</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42024</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42024</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 07 Apr 2019 22:25:10 GMT</pubDate></item><item><title><![CDATA[Reply to How to find two or more non-consecutive tabs in a line? on Sun, 07 Apr 2019 09:00:46 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> said:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/glossar" aria-label="Profile: glossar">@<bdi>glossar</bdi></a> said:</p>
<blockquote>
<p dir="auto">regex that locates a line that contains no tab?</p>
</blockquote>
<p dir="auto">There might be better ones, but this one seems to work:</p>
<p dir="auto"><code>^((?!\t).)*$</code></p>
</blockquote>
<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>,<br />
Is it possible for you to modify this regex so shat it should skip blank lines, i.e. the ones containing no characters at all, just (if applicable, ^ and) \r\n. Currently the regex finds blank lines as well since they , too, meet the criteria “no-tab”.</p>
<p dir="auto">Thanks in advance!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42005</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42005</guid><dc:creator><![CDATA[glossar]]></dc:creator><pubDate>Sun, 07 Apr 2019 09:00:46 GMT</pubDate></item><item><title><![CDATA[Reply to How to find two or more non-consecutive tabs in a line? on Mon, 01 Apr 2019 15:38:22 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/glossar" aria-label="Profile: glossar">@<bdi>glossar</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/meta-chuh" aria-label="Profile: meta-chuh">@<bdi>meta-chuh</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">Here is an <strong>other</strong> solution, which looks for <strong>all</strong> contents of lines containing, at <strong>least</strong> , <strong><code>2</code></strong> <strong>tabulation</strong> chars ( can’t do <strong>shorter</strong> ! ) :</p>
<p dir="auto">SEARCH <strong><code>(?-s).*\t.*\t.*</code></strong></p>
<p dir="auto">Just for <strong>information</strong>, an other formulation of the <strong>Alan</strong>’s regex, which searches lines which do <strong>not</strong> contain any <strong>tabulation</strong> char, could be :</p>
<p dir="auto">SEARCH <strong><code>(?!.*\t)^.+</code></strong></p>
<hr />
<p dir="auto"><strong>Negative</strong> character classes are <strong>often</strong> misunderstood, Indeed ! When you’re using, for instance, the <strong>negative</strong> class character below :</p>
<p dir="auto"><strong><code>[^&lt;char1&gt;&lt;char2&gt;&lt;char3&gt;-&lt;char4&gt;]</code></strong></p>
<p dir="auto">It will match <strong>ANY</strong> <strong>Unicode</strong> character which is <strong>DIFFERENT</strong> from, either <strong><code>&lt;char1&gt;</code></strong>, <strong><code>&lt;char2&gt;</code></strong> and <strong>all</strong> characters between <strong><code>&lt;char3&gt;</code></strong> and <strong><code>&lt;char4&gt;</code></strong> included. So, most of the time, it <strong>probably</strong> matches the <strong><code>\r</code></strong> and <strong><code>\n</code></strong> <strong>END of Line</strong> characters. To avoid matching these <strong>line-break</strong> chars, just insert <strong><code>\r</code></strong> and <strong><code>\n</code></strong>, inside the <strong>negative</strong> class, at <strong>any</strong> location, <strong>after</strong> the <strong><code>^</code></strong>, except in <strong>ranges</strong> :</p>
<p dir="auto"><strong><code>[^&lt;char1&gt;\n&lt;char2&gt;\t&lt;char3&gt;-&lt;char4&gt;]</code></strong></p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41798</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41798</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 01 Apr 2019 15:38:22 GMT</pubDate></item><item><title><![CDATA[Reply to How to find two or more non-consecutive tabs in a line? on Mon, 01 Apr 2019 14:06:43 GMT]]></title><description><![CDATA[<p dir="auto">Alan, the second one that finds no-tab :), works, thank you.</p>
<p dir="auto">Guy and Peter - Thank you for stepping-in! :) Much appreciated!</p>
<p dir="auto">Have a nice day!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41797</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41797</guid><dc:creator><![CDATA[glossar]]></dc:creator><pubDate>Mon, 01 Apr 2019 14:06:43 GMT</pubDate></item><item><title><![CDATA[Reply to How to find two or more non-consecutive tabs in a line? on Mon, 01 Apr 2019 14:06:24 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> said:</p>
<blockquote>
<p dir="auto">Hopefully, I still added to the discussion.</p>
</blockquote>
<p dir="auto">You did, and you helped make it an “interesting discussion”.  thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41796</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41796</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 01 Apr 2019 14:06:24 GMT</pubDate></item><item><title><![CDATA[Reply to How to find two or more non-consecutive tabs in a line? on Mon, 01 Apr 2019 14:06:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/glossar" aria-label="Profile: glossar">@<bdi>glossar</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/meta-chuh" aria-label="Profile: Meta-Chuh">@<bdi>Meta-Chuh</bdi></a> , <em>et alia</em>,</p>
<p dir="auto">Unfortunately, the <code>(?-s)</code> only changes the behavior of <code>.</code> with respect to newlines; it doesn’t change character classes, so <code>[^\t]+</code> means “one or more characters that don’t match a TAB, even if those characters are newlines”.  By changing the full regex to <code>(?-s)^.*?\t[^\t\r\n]+\t.*?$</code>, I was able to get it to skip lines like <a class="plugin-mentions-user plugin-mentions-a" href="/user/meta-chuh" aria-label="Profile: Meta-Chuh">@<bdi>Meta-Chuh</bdi></a> 's example of <code>x</code> instead of the TAB.  The class <code>[^\t\r\n]</code> means “match one or more characters that isn’t any of <code>TAB</code>, <code>CR</code> (carriage return), or <code>LF</code> (line-feed)”</p>
<p dir="auto">I am not as regex expert as <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a>, so I may be misinterpreting; however, the <a href="https://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html#boost_regex.syntax.perl_syntax.escaped_characters" rel="nofollow ugc">boost docs</a> say (emphasis mine)</p>
<blockquote>
<p dir="auto"><strong>Escaped Characters</strong><br />
All the escape sequences <strong>that match a single character</strong>, or a single character class are permitted within a character class definition. For example [[]] would match either of [ or ] while [\W\d] would match any character that is either a “digit”, or is not a “word” character.</p>
</blockquote>
<p dir="auto">Since <code>\R</code> doesn’t match a “single character” (it can match a single character or <s>a pair of characters</s> <em>more than one character</em>, see <a href="https://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html#boost_regex.syntax.perl_syntax.matching_line_endings" rel="nofollow ugc">boost’s “Matching Line Endings” section</a>), it doesn’t fall within the allowable escape sequences permitted in the character class.</p>
<p dir="auto"><strong>edit</strong>: while typing this up, four more posts were made.  Hopefully, I still added to the discussion.<br />
<strong>edit 2</strong>: clarify the <code>\R</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/41795</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41795</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 01 Apr 2019 14:06:27 GMT</pubDate></item><item><title><![CDATA[Reply to How to find two or more non-consecutive tabs in a line? on Sat, 19 Nov 2022 02:36:07 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/glossar" aria-label="Profile: glossar">@<bdi>glossar</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>, and <strong>All</strong>,</p>
<p dir="auto">A <strong>second</strong> solution could be :</p>
<p dir="auto">SEARCH <strong><code>(?-s)(?=.*\t.*\t).+</code></strong></p>
<p dir="auto">A <strong>third</strong> solution could be, using the <strong>Mark</strong> dialog, w/o checking the <strong><code>Bookmark line</code></strong> option :</p>
<p dir="auto">MARK <strong><code>(?-s)\t.*\t</code></strong></p>
<hr />
<p dir="auto">Note, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>, that your regex should be changed into :</p>
<p dir="auto">SEARCH <strong><code>(?-s)^.*?\t[^\t\r\n]+\t.*?$</code></strong></p>
<p dir="auto">To avoid <strong>wrong</strong> multi-lines match. However, this solution still <strong>misses</strong> some possibilities !</p>
<hr />
<p dir="auto">You may <strong>test</strong> these <strong><code>3</code></strong> regexes, above, against the <strong>sample</strong> test, below :</p>
<pre><code class="language-diff">---------------------------- 1 TEXT block without TAB -----&gt; KO &lt;----- ( because NO tabulation )
abcd
---------------------------- 1 TAB  without TEXT ----------&gt; KO &lt;----- ( because ONE tabulation ONLY )
	
---------------------------- 2 TABs without TEXT ----------- OK ------
		
---------------------------- 3 TABs without TEXT ----------- OK ------
			
---------------------------- 1 TAB  + 1 TEXT block --------&gt; KO &lt;----- ( because ONE tabulation ONLY )
abcd	
	abcd
---------------------------- 1 TAB  + 2 TEXT blocks -------&gt; KO &lt;----- ( because ONE tabulation ONLY )
abcd	efgh
---------------------------- 2 TABs + 1 TEXT block --------- OK ------
efgh		
	efgh	
		efgh
---------------------------- 2 TABs + 2 TEXT blocks -------- OK ------
abcd	efgh	
abcd		ijkm
	efgh	ijkl
---------------------------- 2 TABs + 3 TEXT blocks -------- OK ------
abcd	efgh	ijkl
---------------------------- 3 TABs + 1 Text block --------- OK ------
abcd			
	efgh		
		ijkl	
			mnop
---------------------------- 3 TABs + 2 Text blocks -------- OK ------
abcd	efgh		
abcd		ijkl	
abcd			monp
	efgh	ijkl	
	efgh		monp
		ijkl	monp
---------------------------- 3 TABs + 3 Text blocks -------- OK ------
abcd	efgh	ijkm	
	efgh	ijkl	mnop
---------------------------- 3 TABs + 4 Text blocks -------- OK ------
abcd	efgh	ijkl	mnop
</code></pre>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41794</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41794</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 19 Nov 2022 02:36:07 GMT</pubDate></item><item><title><![CDATA[Reply to How to find two or more non-consecutive tabs in a line? on Mon, 01 Apr 2019 14:01:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/glossar" aria-label="Profile: glossar">@<bdi>glossar</bdi></a> said:</p>
<blockquote>
<p dir="auto">regex that locates a line that contains no tab?</p>
</blockquote>
<p dir="auto">There might be better ones, but this one seems to work:</p>
<p dir="auto"><code>^((?!\t).)*$</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/41793</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41793</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 01 Apr 2019 14:01:27 GMT</pubDate></item><item><title><![CDATA[Reply to How to find two or more non-consecutive tabs in a line? on Mon, 01 Apr 2019 13:56:59 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, that now works like a  charm! :)</p>
<p dir="auto">While we are at it, how about building another regex that locates a line that contains <strong>no</strong> tab? :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41792</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41792</guid><dc:creator><![CDATA[glossar]]></dc:creator><pubDate>Mon, 01 Apr 2019 13:56:59 GMT</pubDate></item><item><title><![CDATA[Reply to How to find two or more non-consecutive tabs in a line? on Mon, 01 Apr 2019 13:54:35 GMT]]></title><description><![CDATA[<p dir="auto">Okay, one more try.  It could be as simple(!) as changing it to this:</p>
<p dir="auto"><code>(?-s)^.*?\t(?!\t).+?\t.*?$</code></p>
<p dir="auto">:)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41791</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41791</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 01 Apr 2019 13:54:35 GMT</pubDate></item><item><title><![CDATA[Reply to How to find two or more non-consecutive tabs in a line? on Mon, 01 Apr 2019 13:54:08 GMT]]></title><description><![CDATA[<p dir="auto">I can’t see the screenshots above - neither on this page nor when clicking on it. All I see is a broken-image-file-icon and “Imgur” next to it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41790</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41790</guid><dc:creator><![CDATA[glossar]]></dc:creator><pubDate>Mon, 01 Apr 2019 13:54:08 GMT</pubDate></item><item><title><![CDATA[Reply to How to find two or more non-consecutive tabs in a line? on Mon, 01 Apr 2019 13:48:29 GMT]]></title><description><![CDATA[<p dir="auto">maybe a screenshot helps:<br />
<img src="https://camo.nodebb.org/8cd8930ab30267d1671530f4f36ac05992a2d121?url=https%3A%2F%2Fi.imgur.com%2Fb02xgsC.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/41789</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41789</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Mon, 01 Apr 2019 13:48:29 GMT</pubDate></item><item><title><![CDATA[Reply to How to find two or more non-consecutive tabs in a line? on Mon, 01 Apr 2019 13:46:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/glossar" aria-label="Profile: glossar">@<bdi>glossar</bdi></a></p>
<p dir="auto">Ah, yes, okay, that makes sense.  The <code>[^\t]+</code> will capture across line-boundaries.  At this point I will bow out and let the regex master <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> step in…  :)</p>
<p dir="auto">And maybe he can comment on my “interesting disussion” post above as well.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41787</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41787</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 01 Apr 2019 13:46:55 GMT</pubDate></item><item><title><![CDATA[Reply to How to find two or more non-consecutive tabs in a line? on Mon, 01 Apr 2019 13:41:25 GMT]]></title><description><![CDATA[<p dir="auto">I can confirm that it finds a line that contains two tabs but if a line doesn’t meet the criteria, it looks further (greedy, you say? :) )and hence finds the following line together, which in the end looks like “every other line”. But I’m pretty sure it skips the \r\n.of a line if this line contains only one tab. Can you limit the regex, so it should look for and within <strong>only one</strong> line (by line, I mean anything between ^ and \r\n).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41786</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41786</guid><dc:creator><![CDATA[glossar]]></dc:creator><pubDate>Mon, 01 Apr 2019 13:41:25 GMT</pubDate></item><item><title><![CDATA[Reply to How to find two or more non-consecutive tabs in a line? on Mon, 01 Apr 2019 13:28:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/glossar" aria-label="Profile: glossar">@<bdi>glossar</bdi></a> said:</p>
<blockquote>
<p dir="auto">Thank you but sadly it won’t work.</p>
</blockquote>
<p dir="auto">Hmmm. Works for me with a Mark operation shown here:</p>
<p dir="auto"><img src="https://camo.nodebb.org/ac83271b4ef0eb43090536a39e2efe7c5bcae5c9?url=https%3A%2F%2Fi.imgur.com%2Fdnkbyiy.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
<p dir="auto">I copied your text from this thread, did a regex replace on it for <code>\[tab\]</code> with <code>\t</code>…and then applied the regex specified earlier to redmark the text.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41784</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41784</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 01 Apr 2019 13:28:14 GMT</pubDate></item><item><title><![CDATA[Reply to How to find two or more non-consecutive tabs in a line? on Mon, 01 Apr 2019 13:18:52 GMT]]></title><description><![CDATA[<p dir="auto">This raises maybe an interesting discussion:  When are characters inside a character class notation, which means inside <code>[</code> and <code>]</code> non literal?  On first crafting the above regex, I thought, this isn’t going to work, it is going to look for <code>\</code> or <code>t</code> separately, not “tab” characters.  But lo and behold, it does look for tabs.  What are the rules for this?</p>
<p dir="auto">I know that <code>[\R]</code> will match <code>\</code> or <code>R</code> and not match <code>\R</code> but that may be a special case and invalid because it can match possibly 2 characters, not just one.</p>
<p dir="auto">But there must be some general rules on what is special inside <code>[</code>…<code>]</code> and <code>[^</code>…<code>]</code> … <em>besides</em> the “specialness” of <code>-</code> when used as a ranger, example <code>[a-z]</code> and the special way needed to get <code>]</code> to be included in the set…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41782</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41782</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 01 Apr 2019 13:18:52 GMT</pubDate></item><item><title><![CDATA[Reply to How to find two or more non-consecutive tabs in a line? on Mon, 01 Apr 2019 13:14:43 GMT]]></title><description><![CDATA[<p dir="auto">Hi Alan,</p>
<p dir="auto">Thank you but sadly it won’t work. It finds only <strong>two</strong> tabs, each <strong>in every other line</strong>, at least in my file, whereas it should locate a line that contain <strong>2 or more tabs in it</strong>. (e.g.: blah [tab] blah blah more blah  [tab] (blah blah [tab] blah)… ).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41781</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41781</guid><dc:creator><![CDATA[glossar]]></dc:creator><pubDate>Mon, 01 Apr 2019 13:14:43 GMT</pubDate></item><item><title><![CDATA[Reply to How to find two or more non-consecutive tabs in a line? on Mon, 01 Apr 2019 12:49:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/glossar" aria-label="Profile: glossar">@<bdi>glossar</bdi></a></p>
<p dir="auto">How about this?:</p>
<p dir="auto"><code>(?-s)^.*?\t[^\t]+\t.*?$</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/41780</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41780</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 01 Apr 2019 12:49:25 GMT</pubDate></item></channel></rss>