# non capital

**URL:** <https://community.mp3tag.de/t/non-capital/15913>\
**Category:** Support\
**Created:** [July 16, 2014, 12:34pm UTC](https://community.mp3tag.de/t/non-capital/15913 "2014-07-16T12:34:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ForSSound](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/258eb7/32.png) [@ForSSound](https://community.mp3tag.de/u/ForSSound)\
**Post date:** [July 16, 2014, 12:34pm UTC](https://community.mp3tag.de/t/non-capital/15913/1 "2014-07-16T12:34:00Z")

</div>

Hi There,

I would like to keep the non capitol words from the first Line the regexpr encounter.

```
POP ROCK, CORPORATE,
MID,peaceful, Reflection, landscape, 
MEDIUM,calme, Reflexion, landscape, 

```

would become  
peaceful, Reflection, landscape

Field: MOOD  
Regular Expression: [a-z].\*  
Replace matches with: $1  
[x] case sensitive

Did the opposite which is useful to fill my Genre Tag

Any Thoughts?  
Guy Forssman

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [July 16, 2014, 3:19pm UTC](https://community.mp3tag.de/t/non-capital/15913/2 "2014-07-16T15:19:36Z")

</div>

> [@ForSSOund](#):
>
> Hi There, I would like to keep the non capitol words ...

**$regexp(%MOOD%,'\b[\u\s]+\b,\s',) From: "POP ROCK, CORPORATE, MID, peaceful, Reflection, landscape, MEDIUM, calme, Reflexion, landscape" To: "peaceful, Reflection, landscape, calme, Reflexion, landscape"**

DD.20140716.1919.CEST

---

<div class="post-metadata">

**Author:** ![ForSSound](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/258eb7/32.png) [@ForSSound](https://community.mp3tag.de/u/ForSSound)\
**Post date:** [July 18, 2014, 5:57am UTC](https://community.mp3tag.de/t/non-capital/15913/3 "2014-07-18T05:57:03Z")

</div>

> [@DetlevD](#):
>
> **$regexp(%MOOD%,'\b[\u\s]+\b,\s',) From: "POP ROCK, CORPORATE, MID, peaceful, Reflection, landscape, MEDIUM, calme, Reflexion, landscape" To: "peaceful, Reflection, landscape, calme, Reflexion, landscape"**
> 
> DD.20140716.1919.CEST

Hi There,

Thank you very much for the quick answer. I did the following:

```
Field: MOOD 
Regular Expression:\b[\u\s]+\b,\s
Replace matches with: $1
[x] case sensitive

```

It indeed does the job but not in all cases

For example

> [@](#):
>
> CORPORATE,  
> LOW/ UP, drama  
> LENT / RAPIDE, drama

will result in

> [@](#):
>
> LOW/ drama  
> LENT / drama

Do you have any improvments?

Thanks for cooping with me,  
Guy Forssman

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [July 18, 2014, 6:57am UTC](https://community.mp3tag.de/t/non-capital/15913/4 "2014-07-18T06:57:39Z")

</div>

> [@ForSSOund](#):
>
> Do you have any improvments?

**$regexp(%MOOD%,'\b[\u\s/]+\b,\s',) From: "POP ROCK, CORPORATE, MID, peaceful, Reflection, landscape, MEDIUM, calme, Reflexion, landscape, LOW/ UP, drama, LENT / RAPIDE, drama" To: "peaceful, Reflection, landscape, calme, Reflexion, landscape, drama, drama"**

DD.20140718.1057.CEST

---

<div class="post-metadata">

**Author:** ![ForSSound](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/258eb7/32.png) [@ForSSound](https://community.mp3tag.de/u/ForSSound)\
**Post date:** [July 18, 2014, 7:27am UTC](https://community.mp3tag.de/t/non-capital/15913/5 "2014-07-18T07:27:42Z")

</div>

Hi Thanks again ,

**From:**  
CORPORATE,  
LOW/ UP, drama  
LENT / RAPIDE, drama  
  
**To:** dramadrama _, is disappeared_

**From:**  
ETHNO POP - ETHNIC POP,  
MID ,arabazing, lanscape, walk, sharing,  
MEDIUM,arabisant, paysage, partage, marche,

**To:**   
ETHNO POP -  
MID ,arabazing, lanscape, walk, sharing,  
MEDIUM,arabisant, paysage, partage, marche,

Is it possible to tweak it even further?  
Kind Regards  
Guy Forssman

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [July 18, 2014, 7:50am UTC](https://community.mp3tag.de/t/non-capital/15913/6 "2014-07-18T07:50:58Z")

</div>

> [@ForSSOund](#):
>
> ... **From:**  
> CORPORATE,  
> LOW/ UP, drama  
> LENT / RAPIDE, drama  
>   
> **To:** dramadrama _, is disappeared_ ...

There has nothing disappeared, there is only the lack of one comma behind the given item.

DD.20140718.1150.CEST

---

<div class="post-metadata">

**Author:** ![ForSSound](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/258eb7/32.png) [@ForSSound](https://community.mp3tag.de/u/ForSSound)\
**Post date:** [July 18, 2014, 8:39am UTC](https://community.mp3tag.de/t/non-capital/15913/7 "2014-07-18T08:39:13Z")

</div>

> [@DetlevD](#):
>
> There has nothing disappeared, there is only the lack of one comma behind the given item.
> 
> DD.20140718.1150.CEST

I understand and will adapt my tactic to put a comma behind every word  
then I search for double ,, and replace them with 1 ,  
and then apply the regular expression.

Still in the second example it stopped rather early.

I must say thank you a lot for the effort.

Is there a site for online testing this regular expression stuff or program.  
So I can learn this a bit.  
I found a lot in Google but there are different kinds of regular expression for java and other ..

Witch one do I follow best?

And again thank you  
Guy Forssman

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [July 18, 2014, 9:26am UTC](https://community.mp3tag.de/t/non-capital/15913/8 "2014-07-18T09:26:57Z")

</div>

> [@ForSSOund](#):
>
> ... Witch one do I follow best? ...

I have the impression that we are talking about different things.

I gave you regexp examples for a one-line tag-field content.

But you work with multi-line content in the tag-field MOOD?

If there exist multi-line content and other exceptions, then you should have to choose a different strategy.

- Isolate different cases, treat each case for itself with it's own fitting pattern.
- If possible, reduce the complexity, reduce the number of cases, ...  
change the appearance of a different case into the appearance of an already existing case, in order to get one pattern for all cases.
- Divide the whole problem into several single steps (actions), which can be treated by easy reg-expessions or by standard functions.

For example ...  
... clean up all different spellings of "," or ", " or " ," or "," or whatever into one format.  
... maybe convert multi-line into single-line, do the actions, convert into multi-line.

DD.20140718.1327.CEST

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [July 18, 2014, 2:45pm UTC](https://community.mp3tag.de/t/non-capital/15913/9 "2014-07-18T14:45:17Z")

</div>

> [@ForSSOund](#):
>
> Hi There, I would like to keep the non capitol words from the first Line ...

Another proposal.

**1. Filter: "$len($regexp(%COMMENT%,'[^\r\n]',))" GREATER 0 2. TEMP \<== %COMMENT% 3. TEMP \<== $regexp(%TEMP%,'([^,])$','$1,') From: "ETHNO POP - ETHNIC POP MID ,arabazing, lanscape, walk, sharing MEDIUM,arabisant, paysage, partage, marche, ... " To: "ETHNO POP - ETHNIC POP, MID ,arabazing, lanscape, walk, sharing, MEDIUM,arabisant, paysage, partage, marche, ... " 4. TEMP \<== $regexp(%TEMP%,'^(.+?)\r?\n(.+?)\r?\n.\*$','$1 $2') From: "ETHNO POP - ETHNIC POP, MID ,arabazing, lanscape, walk, sharing, MEDIUM,arabisant, paysage, partage, marche, ... ... " To: "ETHNO POP - ETHNIC POP, MID ,arabazing, lanscape, walk, sharing," 5. TEMP \<== $regexp($trim(%TEMP%,','),'\s\*,\s\*',', ') TEMP = 'ETHNO POP - ETHNIC POP, MID, arabazing, lanscape, walk, sharing' ---------- ... or ... 5a. Tag-Feld aufteilen Split field by separator Field: Temp Separator: , (Note: one letter: comma) 5b. Doppelte Tag-Felder zusammenfassen Merge duplicate fields Field : Temp Separator: , (Note: two letters: comma space) TEMP = 'ETHNO POP - ETHNIC POP, MID, arabazing, lanscape, walk, sharing' ---------- 6. TEMP \<== $regexp(%TEMP%,'\b[\u\s/-]+\b,\s',) TEMP = 'arabazing, lanscape, walk, sharing'**

DD.20140718.1845.CEST

---

<div class="post-metadata">

**Author:** ![ForSSound](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/258eb7/32.png) [@ForSSound](https://community.mp3tag.de/u/ForSSound)\
**Post date:** [July 22, 2014, 9:50am UTC](https://community.mp3tag.de/t/non-capital/15913/10 "2014-07-22T09:50:27Z")

</div>

> [@DetlevD](#):
>
> Another proposal.
> 
> **1. Filter: "$len($regexp(%COMMENT%,'[^\r\n]',))" GREATER 0 2. TEMP \<== %COMMENT% 3. TEMP \<== $regexp(%TEMP%,'([^,])$','$1,') From: "ETHNO POP - ETHNIC POP MID ,arabazing, lanscape, walk, sharing MEDIUM,arabisant, paysage, partage, marche, ... " To: "ETHNO POP - ETHNIC POP, MID ,arabazing, lanscape, walk, sharing, MEDIUM,arabisant, paysage, partage, marche, ... " 4. TEMP \<== $regexp(%TEMP%,'^(.+?)\r?\n(.+?)\r?\n.\*$','$1 $2') From: "ETHNO POP - ETHNIC POP, MID ,arabazing, lanscape, walk, sharing, MEDIUM,arabisant, paysage, partage, marche, ... ... " To: "ETHNO POP - ETHNIC POP, MID ,arabazing, lanscape, walk, sharing," 5. TEMP \<== $regexp($trim(%TEMP%,','),'\s\*,\s\*',', ') TEMP = 'ETHNO POP - ETHNIC POP, MID, arabazing, lanscape, walk, sharing' ---------- ... or ... 5a. Tag-Feld aufteilen Split field by separator Field: Temp Separator: , (Note: one letter: comma) 5b. Doppelte Tag-Felder zusammenfassen Merge duplicate fields Field : Temp Separator: , (Note: two letters: comma space) TEMP = 'ETHNO POP - ETHNIC POP, MID, arabazing, lanscape, walk, sharing' ---------- 6. TEMP \<== $regexp(%TEMP%,'\b[\u\s/-]+\b,\s',) TEMP = 'arabazing, lanscape, walk, sharing'**
> 
> DD.20140718.1845.CEST

Hi Thank you very much for the propositions.  
I already opened a new thread here [/t/15916/1](https://community.mp3tag.de/t/15916/1)  
I also put partial solutions in green

Kind Regards  
Guy Forssman

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [February 9, 2026, 12:25pm UTC](https://community.mp3tag.de/t/non-capital/15913/11 "2026-02-09T12:25:08Z")

</div>

Closed on February 9, 2026, 12:25pm UTC


