#! perl -slw use strict; my $test = 'xxx,xyyy,zzz,zzz,ppp,qqq,rrr'; my $re = qr[ (?junk xxx xyyy zzz,zzz ppp qqq rrr