Menu

#2 <> matches in tag generation should not be greedy

open
nobody
None
5
2005-11-15
2005-11-15
No

If I have a file named "08 Nine Funerals Of The Citizen
King.mp3" and use the Tag Multiple Files feature with
"<track> <title>" as the format, the track is set to
"08 Nine Funerals Of The Citizen" and the title to
"King". That is, the match for <track> matched
everything until the last space, it did not stop at the
first. This kind of matching is called "greedy"
matching, and it matches the maximum possible number of
characters.

There are situations when this is useful, but clearly
there are also situations when it would be better to
match the mininum possile. So I believe there should be
two variants of the matchers, one for greedy matching
and one for non-greedy matching.

Finally, this problem happens with all delimiters. If a
file has the format "<track> - <title>", but the title
contains an hyphen, the track field will also have more
text than the desired.

Discussion


Log in to post a comment.