Copy a Number from FILENAME (or TITLE) to TRACK

Hello, ́
I've searched, read here and tried around so much, but I need help.

I want to copy a certain number from FILENAME (or TITLE) to TRACK, but I just can't get it...

FILENAME(s):
I'm a Podcast #123 (01.01.2001) - Artist
I'm a Podcast #123 _ sometimes with details (01.01.2001) - Artist

TITLE(s):
I'm a Podcast #123 (01.01.2001) - Artist
I'm a Podcast #123 / sometimes with details (01.01.2001) - Artist

Now I want to copy the number of the episode (#123, without #) to TRACK.
If the hashtag is a bigger problem, I could remove it first and put it back in after.

I hope someone can help me with my problem.

Thank you and greetz
Schoni

Try Convert>Tag-Tag for TRACK
Format string: $regexp(%title%,'.*#(\d+) \(.*',$1)

Check the preview whether it works

Hi ohrenkino & thanks you.

Unfortunately, the entire %title% is copied to TRACK. :frowning:

Greetz

That means that the applied pattern does not match the source.
So please show a real title. In regular expressions every character matters.

Hello again,
that's exactly why I chose the example title like the original, BUT:

I have two spaces between the number and the date, but the forum only shows one after sending.
Now, when I adjust the title to only one space, it works.

The info will probably help you more than just posting it again with one space, hehe.

Die Info

Greetz

Screenshots sometimes work miracles.

Here is what I get with the example string and a slight modification:
$regexp('I''m a Podcast #123 (01.01.2001) - Artist','.*#(\d+)\s*\(.*',$1)
123

grafik

ich red eben mal deutsch :smiley:

das ist aber (wie es scheint) auch nur mit einem leerzeichen zwischen #123 und (01.01.2001) bei dir.
wenn ich ein leerzeichen lösche, ging es mit %title%, genauso wie es nun geht, wenn ich dort nicht 2 leerzeichen hätte.

VG

Please stay in English in the English part of the forum.

I don't think that the number of space characters is the problem:
grafik

A screenshot of the real data would help a lot.

Mark the whole string with the 2 spaces and preformat it with </> or CTRL-e before posting to avoid that some characters get eaten by the forum software.