# I need help for a fitting regular expression.

**URL:** <https://community.mp3tag.de/t/i-need-help-for-a-fitting-regular-expression/15700>\
**Category:** Support\
**Created:** [April 30, 2014, 8:12am UTC](https://community.mp3tag.de/t/i-need-help-for-a-fitting-regular-expression/15700 "2014-04-30T08:12:47Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [April 30, 2014, 8:12am UTC](https://community.mp3tag.de/t/i-need-help-for-a-fitting-regular-expression/15700/1 "2014-04-30T08:12:47Z")

</div>

I need help for a fitting regular expression.  
I can do this ...

**$regexp('TT000 A TT1 B C TT22 D TT333 E TT4444 F G H TT55555','(?:^|\s)TT.+?(?\>(?:\s|$))',' ') ==\> ' A B C D E F G H '**

How to negate the above regular expression to get the following result?

**==\> 'TT000 TT1 TT22 TT333 TT4444 TT55555'**

Thanks in advance.

DD.20140430.1212.CEST

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [April 30, 2014, 12:45pm UTC](https://community.mp3tag.de/t/i-need-help-for-a-fitting-regular-expression/15700/2 "2014-04-30T12:45:57Z")

</div>

This is probably much too simple but...  
$regexp(%albumartist%,'[A-Z]\s',' ')

"TT000 A TT1 B C TT22 D TT333 E TT4444 F G H TT55555" -\>  
"TT000 TT1 TT22 TT333 TT4444 TT55555"

---

<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:** [April 30, 2014, 1:18pm UTC](https://community.mp3tag.de/t/i-need-help-for-a-fitting-regular-expression/15700/3 "2014-04-30T13:18:52Z")

</div>

> [@ohrenkino](#):
>
> This is probably much too simple but...

'ohrenkino', thank you for helping me, but the example cannot be taken literally as is.  
The given list of items is a list of random words, having here and there similar words with different length, but with the same word stem. I want to get the list of the words from this word family.

DD.20140430.1718.CEST

---

<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/i-need-help-for-a-fitting-regular-expression/15700/4 "2026-02-09T12:25:01Z")

</div>

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


