Apparently, there is a modifier that could be used with which to increase the density of the regex syntax, in order to make it easier to read. The modifier is:
/x
I tried to test it, but failed to apply it correctly. Could someone please post an example of where this density modifier should be added to the regex syntaxes, or elsewhere, for it to increase the syntax density?
What I have read: you may enter expressions in Perl code (not in MP3tag) so that individual parts are spread over several lines and comments may be added.
E.g.
if (
$line =~ /
^\s* # starting with zero or more spaces
package
\s+ # at least one space
(\S+) # capture any non-space characters
; # ending in a semi-colon
/x
)
{
Please note: this is no valid syntax for MP3tag.
As MP3tag allows only a single line input (the UI elements have only a single line) I do not see how the code in MP3tag should benefit from it.