qr{ \&? # Leading char for Sub-name - ( [^(),\s]+ ) # Sub-name OR arg [(,)]? # Trailing "(" or comma }x;