regular expression kills my synced lyrics


#1

hello hello

please, can anyone help?

  1. removing leading/trailling white spaces with regular expressions kills my synced lyrics!
    synced lyrics are in unicode-format and made with the lyrics show panel 3 (foo_uie_lyrics3)
    in foobar2000.

  2. when i try to use more then one field in "quick action" (Replace with regular expression),
    nothing happens. ex: field=ARTIST;ALBUM;TITLE etc..
    i must use _ALL or _TAG. but this kills always my synced lyrics.

what do i wrong?


#2

You could try to export the lyrics first, then apply your regex to _ALL and then re-import the lyrics back. In 1 action group :wink:


#3

What regexp are you using?


#4

puh! thats not the deal i want to go with 1000 of tracks. :unsure:


#5

^\s+ for heading spaces
\s{2,} for those in the middle
\s+$ for trailing spaces

:music: currently listing 'the healer - john lee hooker'


#6

You could use the $trim() function to get rid of leading and trailing blanks.
The action would be of the type format value instead of replace.


#7

$trim() does not work with _TAG

Change the regex to:
^[ \t]+
[ \t]{2,}
[ \t]+$

If it is still a problem then post an example of the lyrics.


#8

YEP! i works! :w00t: thank you very much indeed for your help, Dano! :rolleyes:

:music: currently listen to " Edgar Froese - Blue Panther (Kamikaze 1989)"