Trimming an extended information field

You could adapt

and use

$regexp(%CATALOGNUMBER%,'^(.+?),.*',$1)