# Having trouble with regex in mp3tag

**URL:** <https://community.mp3tag.de/t/having-trouble-with-regex-in-mp3tag/15579>\
**Category:** Support\
**Created:** [March 12, 2014, 11:39pm UTC](https://community.mp3tag.de/t/having-trouble-with-regex-in-mp3tag/15579 "2014-03-12T23:39:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dunnie](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/c5a1d2/32.png) [@Dunnie](https://community.mp3tag.de/u/Dunnie)\
**Post date:** [March 12, 2014, 11:39pm UTC](https://community.mp3tag.de/t/having-trouble-with-regex-in-mp3tag/15579/1 "2014-03-12T23:39:15Z")

</div>

Hey guys ... I am trying to do a replace ...

how can I search the following string for '\_w' and find all the letters following that position until I hit a space ?

Here is a sample string "Suspense\_1944-12-21\_BrightonStrangler\_wJohnLoder UPGRADE-2 SS"

I am trying to extract 'JohnLoder' in this example ...

I tried using :

\_w(\S\*)

and

(?\<=\_w)\S\*

What am I doing wrong ? Thanks !!!! =)

---

<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:** [March 13, 2014, 5:19am UTC](https://community.mp3tag.de/t/having-trouble-with-regex-in-mp3tag/15579/2 "2014-03-13T05:19:05Z")

</div>

The search string could be (without the inverted commas): "\_w.\* "

---

<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:** [March 13, 2014, 5:59am UTC](https://community.mp3tag.de/t/having-trouble-with-regex-in-mp3tag/15579/3 "2014-03-13T05:59:52Z")

</div>

> [@Dunnie](#):
>
> ... Here is a sample string "Suspense\_1944-12-21\_BrightonStrangler\_wJohnLoder UPGRADE-2 SS"  
> I am trying to extract 'JohnLoder' in this example ...

**$regexp('Suspense\_1944-12-21\_BrightonStrangler\_wJohnLoder UPGRADE-2 SS','^.\*\_w(.+?)\s.\*$','$1')**

==\> JohnLoder  
... or ...

**$regexp('Suspense\_1944-12-21\_BrightonStrangler\_wJohnLoder UPGRADE-2 SS','^.\*\_w(\S+).\*$','$1')**

==\> JohnLoder

DD.20140313.0759.CET

---

<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:24pm UTC](https://community.mp3tag.de/t/having-trouble-with-regex-in-mp3tag/15579/4 "2026-02-09T12:24:57Z")

</div>

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


