<?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[regexp to match comma(s) end of line]]></title><description><![CDATA[<p dir="auto">hello,<br />
I’m trying to write a regexp to match comma(s) (at least one) in the end of a line with or without spaces between them or before them or after them,<br />
it sounds simple but I couldn’t make it,<br />
so, if anyone can help, I appreciate it,<br />
thanks</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25553/regexp-to-match-comma-s-end-of-line</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 03:16:40 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25553.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Mar 2024 20:50:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to regexp to match comma(s) end of line on Sat, 09 Mar 2024 12:42:15 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/patrickdrd" aria-label="Profile: patrickdrd">@<bdi>patrickdrd</bdi></a>,</p>
<p dir="auto">In a <strong>pevious</strong> post, you said :</p>
<blockquote>
<p dir="auto">anyway, I’m posting one of my such files to take a look yourselves if and whoever has some time, thanks!</p>
</blockquote>
<blockquote>
<p dir="auto"><a href="https://pastebin.com/raw/rFi6heCt" rel="nofollow ugc">https://pastebin.com/raw/rFi6heCt</a></p>
</blockquote>
<p dir="auto">So, I downloaded your file and, after studying it <strong>two</strong> days, I’m happy to <strong>email</strong> you back both the <strong>original</strong> file and the <strong>new</strong> one, with my <strong>formatting</strong> :-))</p>
<hr />
<p dir="auto">I succeeded to transform <strong>all</strong> your data in <strong><code>9</code></strong> <strong>tables</strong>, described below :</p>
<pre><code class="language-diff">
    •----------•---------•---------•
    |  Fields  |  Width  |  Lines  |
    •----------•---------•---------•
    |    10    |  9,849  |   466   |
    |     4    |    146  |    43   |
    |    19    |  1,565  |   216   |
    |     2    |    154  |    15   |
    |    12    |  9,008  |   169   |
    |    12    |  5,992  |    89   |
    |     9    |  8,346  |    21   |
    |     9    |    226  |    39   |
    |     7    |    381  |   487   |
    •----------•---------•---------•
	
</code></pre>
<p dir="auto">REMARK : Just <strong>one</strong> record is still <strong>odd</strong>. You can get this record by searching the <strong>regex</strong> <strong><code>\x{203D}{3}</code></strong></p>
<hr />
<p dir="auto">I also rename this <em>OUTPUT</em> text file as an <strong>Lua</strong> file, in order to get a <strong>general</strong> folding, which does <strong>not</strong> interfere with your file contents !</p>
<p dir="auto">Finally, I <strong>verified</strong> that the number of chars ( <strong><code>339,792</code></strong> ) is <strong>identical</strong> between your <strong>original</strong> file <strong><code>Patrick_BEFORE.txt</code></strong> and the <strong>transformed</strong> file <strong><code>Patrick_AFTER.lua</code></strong>, with the regex <strong><code>(?![,| \[\]•\x{203D}\r\n-])[\x{0000}-\x{D7FF}\x{E000}-\x{FFFF}]</code></strong>, which covers <strong>all</strong> the <strong><code>BMP</code></strong> Unicode plane, except for the <strong><code>10</code></strong> characters below :</p>
<pre><code class="language-diff">,    |    \x20    [    ]    •    ‽    \r    \n    -
</code></pre>
<hr />
<p dir="auto">I do hope that my work will be <strong>benefic</strong> to you, in some way !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93489</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93489</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 09 Mar 2024 12:42:15 GMT</pubDate></item><item><title><![CDATA[Reply to regexp to match comma(s) end of line on Wed, 06 Mar 2024 19:42:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/patrickdrd" aria-label="Profile: patrickdrd">@<bdi>patrickdrd</bdi></a> said in <a href="/post/93444">regexp to match comma(s) end of line</a>:</p>
<blockquote>
<p dir="auto">I’m trying to find a way to compare 2 excel files (xlsx), examdiff has a plugin to do so and regexp to exclude bs characters in the end, but i can’t filter them out</p>
</blockquote>
<p dir="auto">I usually do that directly within Excel. Normally I use the <code>MATCH()</code> function get the row I want to compare and then <code>INDEX()</code> to pull the data from a specific column on that row. The <code>EXACT()</code> function is a case-insensitive compare.  More detail that that is far outside the scope of this forum, which focuses on Notepad++.</p>
<p dir="auto">It sounds like you want to use Notepad++ regular expressions to normalize or clean up the data so that other tools such as examdiff don’t get upset at the noise.</p>
<p dir="auto">Are you trying to detect <strong>any</strong> changes in your Excel files or are you only interested in the visible text in cells? For example, if I right click and add a comment to an Excel cell are you trying to detect that I made the comment?  The reason I asked that is that it’s not clear if a tool such as Notepad++ would be helpful or a hindrance.  Your current example CSV contains a wide range of things such as script snippets and what looks like relational database dumps.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93446</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93446</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Wed, 06 Mar 2024 19:42:10 GMT</pubDate></item><item><title><![CDATA[Reply to regexp to match comma(s) end of line on Wed, 06 Mar 2024 19:05:43 GMT]]></title><description><![CDATA[<p dir="auto">I’m trying to find a way to compare 2 excel files (xlsx), examdiff has a plugin to do so and regexp to exclude bs characters in the end, but i can’t filter them out</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93444</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93444</guid><dc:creator><![CDATA[patrickdrd]]></dc:creator><pubDate>Wed, 06 Mar 2024 19:05:43 GMT</pubDate></item><item><title><![CDATA[Reply to regexp to match comma(s) end of line on Wed, 06 Mar 2024 18:07:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/patrickdrd" aria-label="Profile: patrickdrd">@<bdi>patrickdrd</bdi></a> said in <a href="/post/93433">regexp to match comma(s) end of line</a>:</p>
<blockquote>
<p dir="auto"><a href="https://pastebin.com/raw/rFi6heCt" rel="nofollow ugc">https://pastebin.com/raw/rFi6heCt</a></p>
</blockquote>
<p dir="auto">That looks like a normal CSV file that I loaded into into Excel without issues. There is one unusual thing about your file which is that it has six sections each with it’s own set of columns.</p>
<pre><code class="language-txt">Line 1: Id,Name,Type,Id,UIField,Comments,Category,SubCategory,XSLT,Length,
Line 1288: CategoryName,SubCategoryName,Description ,Image
Line 1331: Id,Name,Type,Id,Validation Type,Validation Expression,Validation Message,,,,,,,,,,,,
Line 1600: Name,RegEx
Line 1618: Id,Name,Type,Id,Event,Interaction Fields,Description,,,,,
Line 5417: Id,Name,Type,Id,UIField,Comments,XSLT,Length,Events
</code></pre>
<p dir="auto">Something that is not clear is exactly what you want to do with the file. The project will by complicated by that it’s a CSV format with the data needing to be within <code>"quotes"</code> at times. I would use one of the CSV parser plugins as that can deal with the quotes. I don’t know how many of them can recognize that you have six sections each with their own set of columns,.</p>
<p dir="auto">Initially you had asked for</p>
<blockquote>
<p dir="auto">match comma(s) (at least one) in the end of a line with or without spaces between them or before them or after them</p>
</blockquote>
<p dir="auto">I don’t see any space/comma sets at the end of any lines. All seven lines that match \x20,+$ seem to have data in the last column with data where the data ends in a space. There are no lines that match <code>comma space comma</code> or <code>,+\x20+,+</code> in the example data.  That does not mean you could have a file with that data but to mean it means on of your data fields contains just a space.  They may be the first, middle, or last field on a line.</p>
<p dir="auto">I also did not see any unusual space characters in the example file other than a few fields contain tab characters and some contain end of line characters. Those are <code>"quoted"</code> per CSV formatting rules.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93442</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93442</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Wed, 06 Mar 2024 18:07:06 GMT</pubDate></item><item><title><![CDATA[Reply to regexp to match comma(s) end of line on Wed, 06 Mar 2024 07:33:05 GMT]]></title><description><![CDATA[<p dir="auto">hello all,<br />
unfortunately my file had a ton of bs in that matter,<br />
these are supoosed to be excel lines proceesed by a plugin and the commas denote the different columns,<br />
so, after experimenting, I got best results with this one:</p>
<pre><code>(?:\h*,)+
</code></pre>
<p dir="auto">but I think this matches simple commas too, which I don’t want :(</p>
<p dir="auto">anyway, I’m posting one of my such files to take a look yourselves if and whoever has some time, thanks!</p>
<p dir="auto"><a href="https://pastebin.com/raw/rFi6heCt" rel="nofollow ugc">https://pastebin.com/raw/rFi6heCt</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/93433</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93433</guid><dc:creator><![CDATA[patrickdrd]]></dc:creator><pubDate>Wed, 06 Mar 2024 07:33:05 GMT</pubDate></item><item><title><![CDATA[Reply to regexp to match comma(s) end of line on Wed, 06 Mar 2024 06:52:47 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/patrickdrd" aria-label="Profile: patrickdrd">@<bdi>patrickdrd</bdi></a> and **All,</p>
<p dir="auto">I think I did <strong>not</strong> understand <strong>properly</strong> your statement :</p>
<blockquote>
<p dir="auto">meanwhile I found out that I would need to ignore (i.e match) these two cases too:</p>
</blockquote>
<p dir="auto">So I initially thought that you wanted that the regex <strong>ignore</strong> these lines. But if, at the <strong>contrary</strong>, you would like that the regex <strong>does</strong> match these cases too, then, simply, get rid of the <strong><code>$</code></strong> <strong>regex</strong> char at the <strong>end</strong> of <strong>each</strong> regex !</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93431</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93431</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 06 Mar 2024 06:52:47 GMT</pubDate></item><item><title><![CDATA[Reply to regexp to match comma(s) end of line on Wed, 06 Mar 2024 06:31:09 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/patrickdrd" aria-label="Profile: patrickdrd">@<bdi>patrickdrd</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: terry-r">@<bdi>terry-r</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: ekopalypse">@<bdi>ekopalypse</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-olson" aria-label="Profile: mark-olson">@<bdi>mark-olson</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">After some tests, I do think than the <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>’s formulation is the <strong>best</strong> and more <strong>simple</strong> one to achieve <a class="plugin-mentions-user plugin-mentions-a" href="/user/patrickdrd" aria-label="Profile: patrickdrd">@<bdi>patrickdrd</bdi></a>’s needs,</p>
<p dir="auto">I did find one myself, which is more <strong>complicated</strong> ( <strong><code>([\x20,]+)?,+([\x20,]+)?$</code></strong> ). So, <strong>no</strong> need to speak about it !</p>
<hr />
<p dir="auto">Thus, <a class="plugin-mentions-user plugin-mentions-a" href="/user/patrickdrd" aria-label="Profile: patrickdrd">@<bdi>patrickdrd</bdi></a>, given the text, below, with <strong>all</strong> lines beginning with a <strong>double-quote</strong> character :</p>
<pre><code class="language-diff">================= with SPACE, TABULATION and NO-BREAK SPACE chars =========================
" 
"              
"    ,
"     ,          
",       
",
" ,
", 
",	
", 
",,
" ,,
",, 
", ,
"	,,
",,	
",	,
" ,,
",, 
", ,
",,,
",,,,,,
"   ,,,,,,			
"			,,,,,,    
"  ,,,,,,    
"   ,	,,   ,   ,, 	 
"		, ,, , ,,
",   ,,     ,			,, 
================= with SPACE and TABULATION chars =========================================
" 
"              
"    ,
"			,     	     
",   		    
",
" ,
", 
",	
",    			
",,
" ,,
",, 
", ,
"	,,
",,	
",	,
",,,
",,,,,,
"   ,,,,,,			
"			,,,,,,     
",,,,,,    
"   ,	,, 	 ,   ,,	 
"		, ,,  		,    ,,
",    ,,     ,			,,  		
================= with SPACE chars 	ONLY ==================================================
" 
"              
"    ,
"     ,          
",       
",
" ,
", 
",,
" ,,
",, 
", ,
",,,
",,,,,,
"   ,,,,,,   
",,,,,,    
"    ,,,,,,
"   , ,,  ,   ,,    
"  , ,,    ,   ,,
"  ,,,     ,    ,,
===========================================================================================
477,UpdateConsortiumControls,function",,,"UpdateConsortiumControls() {
477,UpdateConsortiumControls,function", ,"UpdateConsortiumControls() {
477,UpdateConsortiumControls,function",	,"UpdateConsortiumControls() {
477,UpdateConsortiumControls,function", ,"UpdateConsortiumControls() {
===========================================================================================
</code></pre>
<p dir="auto">Test the <strong>three</strong> following regexes against this text. And, if your <strong>blank</strong> characters are :</p>
<ul>
<li>
<p dir="auto"><strong>Space</strong> chars only, use the <strong>initial</strong> <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>’s solution <strong><code>"\x20*,[\x20,]*$</code></strong> =&gt; <strong><code>41</code></strong> matches</p>
</li>
<li>
<p dir="auto"><strong>Space</strong> or <strong>tabulation</strong> chars, use the <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>’s variant <strong><code>"[\t\x20]*,[\t\x20,]*$</code></strong> =&gt; <strong><code>58</code></strong> matches</p>
</li>
<li>
<p dir="auto"><strong>Space</strong>, <strong>tabulation</strong> or <strong>no-break space</strong> chars, use the <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>’s variant <strong><code>"\h*,[\h,]*$</code></strong> =&gt; <strong><code>67</code></strong> matches</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93430</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93430</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 06 Mar 2024 06:31:09 GMT</pubDate></item><item><title><![CDATA[Reply to regexp to match comma(s) end of line on Tue, 05 Mar 2024 17:36:55 GMT]]></title><description><![CDATA[<blockquote>
<blockquote>
<p dir="auto">your solution doesn’t match this case:<br />
}", , , ,</p>
</blockquote>
</blockquote>
<blockquote>
<p dir="auto">Yes, it does, for me. But maybe you have some other context</p>
</blockquote>
<p dir="auto">You have <code>NBSP</code> characters in there.<br />
That’s why my solution didn’t work for you.<br />
So I take back my criticism of Mark’s suggested solution, as <code>\h</code> will actually match <code>NBSP</code>.<br />
Let’s chalk it up to an OP wanting a solution to a problem/data he really doesn’t understand.  :-P</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93418</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93418</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 05 Mar 2024 17:36:55 GMT</pubDate></item><item><title><![CDATA[Reply to regexp to match comma(s) end of line on Tue, 05 Mar 2024 14:55:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/patrickdrd" aria-label="Profile: patrickdrd">@<bdi>patrickdrd</bdi></a> said in <a href="/post/93400">regexp to match comma(s) end of line</a>:</p>
<blockquote>
<p dir="auto">it doesn’t match them all:</p>
</blockquote>
<p dir="auto">In the following posts to the OP stating my solution didn’t work noone seemed to realise (or at least state as such) that it does meet the request. The OP’s image clearly shows that the first match (in light blue) has another character preceding the 2 commas which is NOT a space. A space character can clearly be seen just above at the end of the first line. It is denoted (in <a href="http://regex101.com" rel="nofollow ugc">regex101.com</a>) as a thick dot hanging mid level on the line. See my amended image showing the differences.</p>
<p dir="auto"><img src="/assets/uploads/files/1709650016621-4d3d5b0a-5a32-49a7-8690-96d58816f371-25553.jpg" alt="4d3d5b0a-5a32-49a7-8690-96d58816f371-25553.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">So it must be another “white space” character(s), possibly replace the space in my solution with [[:space:]] as this includes a non-breaking space, amongst others. The only way to determine that would be to investigate it in Notepad++ and find it’s hex value.</p>
<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>  agreed, I didn’t cater for a line ending in just spaces. My amended regex would be <code>(?-s)(?=.?,)[ ,]+$</code>. But since this would also miss the issue in the OP’s image I would leave that to the OP to first identify the mystery character before substituting (or including) it in the original solution.</p>
<p dir="auto">I also agree with <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> response to your quick assertions that things don’t work. You have been a member for long enough to have picked up some tools. Use them, thus far it seems you are quick to ask questions but slow to do any actual work yourself.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/patrickdrd" aria-label="Profile: patrickdrd">@<bdi>patrickdrd</bdi></a>, remember, you come to us with the questions, if you don’t do any work in the process, you may quickly find the solutions dry up.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93415</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93415</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Tue, 05 Mar 2024 14:55:27 GMT</pubDate></item><item><title><![CDATA[Reply to regexp to match comma(s) end of line on Tue, 05 Mar 2024 13:19:57 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> no sir, it matches only the last two commas and I would like all of them,<br />
also my job is “dynamic” , I can’t figure out what is needed beforehand all the times,<br />
if you don’t like that, please don’t answer</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93409</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93409</guid><dc:creator><![CDATA[patrickdrd]]></dc:creator><pubDate>Tue, 05 Mar 2024 13:19:57 GMT</pubDate></item><item><title><![CDATA[Reply to regexp to match comma(s) end of line on Tue, 05 Mar 2024 13:10:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/patrickdrd" aria-label="Profile: patrickdrd">@<bdi>patrickdrd</bdi></a> said :</p>
<blockquote>
<p dir="auto">your solution doesn’t match this case:<br />
<code>}", ,, , ,,</code></p>
</blockquote>
<p dir="auto">Yes, it does, for me.  But maybe you have some other context (that you haven’t been specific enough about) that causes it not to work.</p>
<hr />
<blockquote>
<p dir="auto">I found out that I would need to match these two cases too:</p>
</blockquote>
<p dir="auto">You have to learn how to ask good questions.<br />
You have been “around” this forum enough to know that.</p>
<p dir="auto">Formulate a new spec, and if people haven’t tired of this subject (and the “oh yea, need THIS now too along with THAT…”) then maybe you’ll get some responses.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93408</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93408</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 05 Mar 2024 13:10:53 GMT</pubDate></item><item><title><![CDATA[Reply to regexp to match comma(s) end of line on Tue, 05 Mar 2024 12:55:49 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> your solution doesn’t match this case:</p>
<pre><code>}", ,, , ,,
</code></pre>
<p dir="auto">meanwhile I found out that I would need to ignore (i.e match) these two cases too:</p>
<pre><code>477,UpdateConsortiumControls,function,,,"UpdateConsortiumControls() {
477,UpdateConsortiumControls,function, ,"UpdateConsortiumControls() {

(note the commas in the middle)
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/93407</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93407</guid><dc:creator><![CDATA[patrickdrd]]></dc:creator><pubDate>Tue, 05 Mar 2024 12:55:49 GMT</pubDate></item><item><title><![CDATA[Reply to regexp to match comma(s) end of line on Tue, 05 Mar 2024 12:36:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a> 's solution doesn’t require a comma to be present (as needed by the OP).</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> 's solution can have hits that cover multiple lines, including empty lines (not wanted by the OP).</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-olson" aria-label="Profile: Mark-Olson">@<bdi>Mark-Olson</bdi></a> 's solution can match “other” horizontal whitespace besides a “space” (not wanted by the OP).</p>
<p dir="auto">So… I’ll present my own solution for others to shoot holes in. :-)</p>
<p dir="auto"><code>\x20*,[\x20,]*$</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/93406</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93406</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 05 Mar 2024 12:36:24 GMT</pubDate></item><item><title><![CDATA[Reply to regexp to match comma(s) end of line on Tue, 05 Mar 2024 11:43:54 GMT]]></title><description><![CDATA[<p dir="auto">I’d slightly modify Ekopalypse’s proposed regex to <code>(?:\h*,+\h*)+$</code>. It’s the same thing, except it doesn’t consume empty lines.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93405</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93405</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Tue, 05 Mar 2024 11:43:54 GMT</pubDate></item><item><title><![CDATA[Reply to regexp to match comma(s) end of line on Tue, 05 Mar 2024 08:28:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/patrickdrd" aria-label="Profile: patrickdrd">@<bdi>patrickdrd</bdi></a></p>
<p dir="auto">maybe something like this??</p>
<p dir="auto"><img src="/assets/uploads/files/1709627146526-e5dd4fab-d5cc-4c37-8cfc-2cd84aba980b-image.png" alt="e5dd4fab-d5cc-4c37-8cfc-2cd84aba980b-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">It uses <code>\s</code>, so if you want to use <strong>only</strong> spaces, you need to replace this with the correct symbol.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93404</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93404</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Tue, 05 Mar 2024 08:28:24 GMT</pubDate></item><item><title><![CDATA[Reply to regexp to match comma(s) end of line on Tue, 05 Mar 2024 06:25:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a> said in <a href="/post/93399">regexp to match comma(s) end of line</a>:</p>
<blockquote>
<p dir="auto">[ ,]+$</p>
</blockquote>
<p dir="auto">it doesn’t match them all:<br />
<img src="/assets/uploads/files/1709619929220-3dc39ac6-1e94-4e56-9c0e-21ae6c2f1b10-image.png" alt="3dc39ac6-1e94-4e56-9c0e-21ae6c2f1b10-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/93400</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93400</guid><dc:creator><![CDATA[patrickdrd]]></dc:creator><pubDate>Tue, 05 Mar 2024 06:25:33 GMT</pubDate></item><item><title><![CDATA[Reply to regexp to match comma(s) end of line on Mon, 04 Mar 2024 21:32:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/patrickdrd" aria-label="Profile: patrickdrd">@<bdi>patrickdrd</bdi></a></p>
<p dir="auto">I’m not on a PC but I think this should work.</p>
<p dir="auto">Find:<code>[ ,]+$</code></p>
<p dir="auto">So it find ends of lines that have only combinations of spaces and commas.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93399</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93399</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Mon, 04 Mar 2024 21:32:52 GMT</pubDate></item></channel></rss>