# Replace string - UNSYNCEDLYRICS

**URL:** <https://community.mp3tag.de/t/replace-string-unsyncedlyrics/15837>\
**Category:** Support\
**Created:** [June 22, 2014, 3:00pm UTC](https://community.mp3tag.de/t/replace-string-unsyncedlyrics/15837 "2014-06-22T15:00:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![durrie](https://community.mp3tag.de/user_avatar/community.mp3tag.de/durrie/32/5937_2.png) [@durrie](https://community.mp3tag.de/u/durrie)\
**Post date:** [June 22, 2014, 3:00pm UTC](https://community.mp3tag.de/t/replace-string-unsyncedlyrics/15837/1 "2014-06-22T15:00:04Z")

</div>

I've recently found a tool that adds Lyrics to MP3 files but it puts the Lyrics data source info at the bottom of the data field. The source info is a line of text encased in square brackets eg...

[Blah Blah [http://BLah](http://BLah) BLah BLah ]

I want to delete this line only from the Lyrics field.

I've created a "Replace with Regular Expression" action to search the UNSYNCEDLYRICS filed and replace with "" but the expression deletes the entire Lyrics field entry and not just the line at the bottom eg... [Blah Blah [http://BLah](http://BLah) BLah BLah ]

I think this is complicated by the "[" and "]" being special characters. The expression is I'm using is [\*]

Why is this deleting the entire Lyrics field and not just the line of text encased by "[]" as this is the only place this features in the Lyrics?

---

<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:** [June 22, 2014, 3:10pm UTC](https://community.mp3tag.de/t/replace-string-unsyncedlyrics/15837/2 "2014-06-22T15:10:07Z")

</div>

> [@durrie](#):
>
> ...The expression is I'm using is [\*]
> 
> Why is this deleting the entire Lyrics field and not just the line of text encased by "" as this is the only place this features in the Lyrics?

Try  
[.\*]

---

<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:** [June 22, 2014, 3:27pm UTC](https://community.mp3tag.de/t/replace-string-unsyncedlyrics/15837/3 "2014-06-22T15:27:18Z")

</div>

> [@durrie](#):
>
> I've recently found a tool that adds Lyrics to MP3 files but it puts the Lyrics data source info at the bottom of the data field. The source info is a line of text encased in square brackets eg...  
> [Blah Blah [http://BLah](http://BLah) BLah BLah ]  
> I want to delete this line only from the Lyrics field. ...

Try this ...  
Action: Format value  
Field: UNSYNCEDLYRICS  
Formatstring:

**$regexp(%UNSYNCEDLYRICS%,'^(.+?)[\r\n\s]\*\[.+?http:.+?\][\r\n\s]\*$','$1')**

... or ...

**$regexp(%UNSYNCEDLYRICS%,'[\r\n\s]\*\[.+?http:.+?\][\r\n\s]\*$',)**

DD.20140622.1940.CEST

---

<div class="post-metadata">

**Author:** ![durrie](https://community.mp3tag.de/user_avatar/community.mp3tag.de/durrie/32/5937_2.png) [@durrie](https://community.mp3tag.de/u/durrie)\
**Post date:** [June 23, 2014, 3:35pm UTC](https://community.mp3tag.de/t/replace-string-unsyncedlyrics/15837/4 "2014-06-23T15:35:51Z")

</div>

> [@ohrenkino](#):
>
> Try  
> [.\*]

![:rolleyes:](https://community.mp3tag.de/uploads/default/original/1X/3a79e8b0b7d169b30216785521d7c6f4f895c421.gif ":rolleyes:") it's always the smallest little thing...thank you Ohrenkino, your suggestion works perfectly.

This is now being nit picking and cheeky and asking another question but is it possible to delete "white space" at the bottom of the field now as my MP3Tag action is to 'replace' with "" which means there is white space at the bottom of the Lyrics field now?

I'm trying to use \s+ but can't get it to work? Must this be a new action?

DetlevD - I could not get it to work with your suggestions...maybe it's just me and my noob status to the world of regular expressions but that is too much "matrix speak" for my little brain to fathom 😳

---

<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:** [June 23, 2014, 4:07pm UTC](https://community.mp3tag.de/t/replace-string-unsyncedlyrics/15837/5 "2014-06-23T16:07:40Z")

</div>

> [@durrie](#):
>
> ![:rolleyes:](https://community.mp3tag.de/uploads/default/original/1X/3a79e8b0b7d169b30216785521d7c6f4f895c421.gif ":rolleyes:") it's always the smallest little thing...thank you Ohrenkino, your suggestion works perfectly.
> 
> This is now being nit picking and cheeky and asking another question but is it possible to delete "white space" at the bottom of the field now as my MP3Tag action is to 'replace' with "" which means there is white space at the bottom of the Lyrics field now?
> 
> I'm trying to use \s+ but can't get it to work? Must this be a new action?
> 
> DetlevD - I could not get it to work with your suggestions...maybe it's just me and my noob status to the world of regular expressions but that is too much "matrix speak" for my little brain to fathom 😳

Use another action of the type "Replace with regular expression" for UNSYNCEDLYRICS  
Enter as search string: \r\n$  
Leave replace string empty.

The $ denotes the end-of-field, the \r is "carriage return", \n is new line - this sequence usually leads to an empty line at the end.

---

<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/replace-string-unsyncedlyrics/15837/6 "2026-02-09T12:25:06Z")

</div>

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


