RegExp to extract text before first comma

This is not quite true if you use
$regexp(%composer%,'^(.+?),.*',$1)
instead
The potential section following the comma does not necessarily need the parenthesis if you do not want to use it anyway, so $2 is not mandatory.
... but there are so many ways to solve the problem.