<?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 delete all, except predefined values]]></title><description><![CDATA[<p dir="auto">Hi!<br />
Newbie here.</p>
<p dir="auto">I did a search but nothing pops up that shows my case.</p>
<p dir="auto">I want to delete all, except certain values.</p>
<p dir="auto">Example of such text:</p>
<pre><code>		The Tetra	Alan Fitzpatrick	B Minor	6	10A	125
		We Are Forever Young	Alan Fitzpatrick	B♭ Minor	6	3A	126
		Everyday &amp; Everynight - Kant Remix	Nolan, Amber Jolene	C Major	5	8B	120
		Lost - Original Mix	Amine Edge &amp; Dance (Sleazy G), DANCE	D Major	9	10B	120
		Save My Night - Extended Mix	Armin van Buuren	D♭ Minor	7	12A	130
		Shivers - Frontliner Remix	Armin van Buuren, Frontliner	D♭ Major	8	3B	150
		Hey Brother - Extended Version	Avicii	G Minor	7	6A	125
		Wake Me Up - EDX Miami Sunset Remix	Avicii	B Minor	9	10A	128
		Wake Me Up - Reggae Mix	Avicii	B Minor	7	10A	93
		Groove Is in the Heart - Alexander Metzger Chillout Mix	Barclay &amp; Cream, Alexander Metzger	E Minor	6	9A	110
		Going Out Tonight	Basement Freaks	B♭ Minor	9	3A	110
		Mystica - Original Mix	Blasterjaxx	E Minor	6	9A	128
		Could You Be Loved - RAC Remix	Bob Marley &amp; The Wailers	G Major	7	9B	198
		Destiny	Droplex, Breech	D Major	7	10B	125
		Loving You Is Easy - Radio Edit	Camo &amp; Krooked	F Minor	5	4A	128
		Winking Wasps - Dario Sorano Remix	Chris David, Dario Sorano	D♭ Minor	8	12A	128
		Love Me Again (Bass Rayders Remix Edit)	Club Rayza	D Minor	8	7A	128
		Queen Of Disco - Jerome Robins &amp; Hazzaro Remix	DJ PP, Jerome Robins, Hazzaro	B♭ Minor	10	3A	125
		Turn Down for What	DJ Snake, Lil Jon	E Major	8	12B	100
		Gunshot - Jinx in Dub Remix	Dub Pistols, Darrison, Rodney P	G Major	8	9B	170
		Reckless Ardor - Original Mix	EDX	D♭ Major	7	3B	121
		Ninja Challenge - Dodge &amp; Fuski Remix	Eptic, Habstrakt, Dodge &amp; Fuski	D♭ Major	9	3B	100
		Eat Sleep Rave Repeat (feat. Beardyman) - Dimitri Vegas &amp; Like Mike vs. Ummet Ozcan Tomorrowland Remix	Fatboy Slim, Beardyman	G Major	8	9B	130
		Magic Button	Format:B	B Major	6	1B	124
		Electric Religion - Original Mix	Framewerk	C Major	5	8B	116
		Dance Floor - Original Mix	Glitter	D♭ Minor	10	12A	128
		Never Say Goodbye - Wildstylez Remix	Hardwell, Dyro, Bright Lights	D♭ Minor	9	12A	148
		Lost	Harvey McKay	D♭ Major	6	3B	123
		Come On Now (Set It Off) - Original Mix	Tube &amp; Berger, Juliet Sikora	B♭ Minor	8	3A	122
		UBS - 2013 VIP Mix	K Theory	D♭ Major	9	3B	103
		Never You Mind	KANT	G Minor	6	6A	120
		Last Chance - Dirtyphonics Remix	Kaskade, Project 46, Dirtyphonics	E♭ Minor	7	2A	140
		Tomorrow	Klopfgeister, Capital Monkey	C Major	9	8B	138
		Feel Like Jumpin - Krossbow Remix	Krafty Kuts, Krossbow	C Major	7	8B	220
		Turn It Up - Tchami Remix	DJ MERCER, Tchami	A♭ Major	9	4B	122
		Rvtchet Bitch - Milo &amp; Otis Remix	Brillz, Teddy Tuxedo, Milo &amp; Otis	B Minor	9	10A	108
		You And I - Stanton Warriors Remix	Fantomen, Mobin Master, Stanton Warriors, Tate Strauss	F♯ Minor	9	11A	130
		Born &amp; Raised - Harmonika Remix	Neelix, Harmonika	D♭ Major	9	3B	138
		Gecko	Oliver Heldens	C Major	8	8B	125
		True Thoughts	Parra for Cuva, Anna Naklab	D♭ Major	6	3B	123
		Monkey City	Patryk Molinari	E Minor	7	9A	122
		Fire Fire Fire - ilan Bluestone Remix	Progresia, Linnea Schossow	F Minor	7	4A	130
		Transformations	Rameses B, Laura Brehm	A Minor	8	8A	140
		Jacqueline - Chill Mix	Rodg	B Minor	5	10A	100
		Running To The Sea - Seven Lions Remix	Röyksopp &amp; Susanne Sundfør, Röyksopp, Susanne Sundfør	F♯ Minor	7	11A	138
		Now You See - Original Mix	Sean Tyas	F Minor	10	4A	134
		We Like to Party - Original Mix	Showtek	B Minor	9	10A	128
		Rudeboy - VIP	Sigma, Doktor	D♭ Major	9	3B	117
		Drone	Smooth	G Major	9	9B	174
		Applause (Criminal Minds Remix)	Sweat Box	F Minor	7	4A	128
		Get Down Low - ShockOne Remix	TC	F♯ Major	8	2B	128
		Digital Playground - Extended Version	Technoboy, Isaac	F Minor	9	4A	150
		Abyss - VIP	The Prototypes	F Major	10	7B	175
		Kalavela	Thomas Newson, John Dish	D♭ Major	10	3B	128
		Show Me Love - Club Mix	Tradelove	A Major	9	11B	128
		Synergy	Haywyre	G Major	8	9B	105
		Revolution - Vocal Mix	R3HAB, NERVO, Ummet Ozcan	G Minor	8	6A	128
</code></pre>
<p dir="auto">I only want to keep:</p>
<ul>
<li>A minor<br />
B minor<br />
C minor<br />
D minor<br />
E minor<br />
F minor<br />
G minor<br />
A Major<br />
B Major<br />
C Major<br />
D Major<br />
E Major<br />
F Major<br />
A♭ Major<br />
B♭ Major<br />
C♭ Major<br />
A♭ minor<br />
B♭ minor<br />
C♭ minor<br />
etc.</li>
</ul>
<p dir="auto">They need to be preserved on the line they are placed.</p>
<p dir="auto">How would I do this?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20863/how-to-delete-all-except-predefined-values</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 09:15:05 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20863.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Mar 2021 10:42:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to delete all, except predefined values on Thu, 11 Mar 2021 16:11:31 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> said in <a href="/post/63787">How to delete all, except predefined values</a>:</p>
<blockquote>
<p dir="auto">\u\1(?2\2:\x20)\x20M\L\3</p>
</blockquote>
<p dir="auto"><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/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a><br />
Thank you guys for thinking along with me!</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> Does EXACTLY what I want - thanks again.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63803</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63803</guid><dc:creator><![CDATA[Bas Curtiz]]></dc:creator><pubDate>Thu, 11 Mar 2021 16:11:31 GMT</pubDate></item><item><title><![CDATA[Reply to How to delete all, except predefined values on Thu, 11 Mar 2021 12:32:34 GMT]]></title><description><![CDATA[<p dir="auto">For sure, not only flats but sharps as well. Nice find.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63789</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63789</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Thu, 11 Mar 2021 12:32:34 GMT</pubDate></item><item><title><![CDATA[Reply to How to delete all, except predefined values on Thu, 11 Mar 2021 12:29:16 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/bas-curtiz" aria-label="Profile: bas-curtiz">@<bdi>bas-curtiz</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: ekopalypse">@<bdi>ekopalypse</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">I suppose that we should <strong>include</strong> the <strong><code>♯</code></strong> <strong>alteration</strong> symbol, as well !</p>
<p dir="auto">if we assume that <strong>chords</strong> are the <strong>main</strong> ones ( <strong><code>Major</code></strong> / <strong><code>Minor</code></strong> ) and with a bit of <strong>formatting</strong>, in <strong>replacement</strong>, we get the following <strong>regex</strong> S/R :</p>
<p dir="auto">SEARCH <strong><code>(?i-s)^.+([A-G])(♭|♯)?\x20+m(inor|ajor).+</code></strong></p>
<p dir="auto">REPLACE <strong><code>\u\1(?2\2:\x20)\x20M\L\3</code></strong></p>
<p dir="auto">and we obtain this list :</p>
<pre><code class="language-diff">B  Minor
B♭ Minor
C  Major
D  Major
D♭ Minor
D♭ Major
G  Minor
B  Minor
B  Minor
E  Minor
B♭ Minor
E  Minor
G  Major
D  Major
F  Minor
D♭ Minor
D  Minor
B♭ Minor
E  Major
G  Major
D♭ Major
D♭ Major
G  Major
B  Major
C  Major
D♭ Minor
D♭ Minor
D♭ Major
B♭ Minor
D♭ Major
G  Minor
E♭ Minor
C  Major
C  Major
A♭ Major
B  Minor
F♯ Minor
D♭ Major
C  Major
D♭ Major
E  Minor
F  Minor
A  Minor
B  Minor
F♯ Minor
F  Minor
B  Minor
D♭ Major
G  Major
F  Minor
F♯ Major
F  Minor
F  Major
D♭ Major
A  Major
G  Major
G  Minor
</code></pre>
<p dir="auto">Notes :</p>
<ul>
<li>
<p dir="auto">Whatever the initial <strong>case</strong> of the <strong>chord</strong> letter and whatever the <strong>case</strong> of the <strong>tone</strong>, there are changed into an <strong>uppercase</strong> letter, from <strong><code>A</code></strong> to <strong><code>G</code></strong> and the words <strong><code>Major</code></strong> or <strong><code>Minor</code></strong>, with this <strong>exact</strong> case</p>
</li>
<li>
<p dir="auto">The <strong>replacement</strong> results are <strong>lined up</strong></p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63787</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63787</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 11 Mar 2021 12:29:16 GMT</pubDate></item><item><title><![CDATA[Reply to How to delete all, except predefined values on Thu, 11 Mar 2021 11:03:56 GMT]]></title><description><![CDATA[<p dir="auto">Maybe something like this?</p>
<p dir="auto">Find what:<code>(?i)^.+([A-G]♭* (?:minor|major)).+$</code><br />
replace with: <code>\1</code><br />
check regular expression</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63779</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63779</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Thu, 11 Mar 2021 11:03:56 GMT</pubDate></item></channel></rss>