in reply to Re: Re: Re: Splitting a comma-delimited string where a substring could countain commas
in thread Splitting a comma-delimited string where a substring could contain commas

Good call. A little massaging would overcome that, but then that puts us in the realm of s/// and others have already posted better solutions using that.

--
perl -pew "s/\b;([mnst])/'$1/g"

  • Comment on Re4: Splitting a comma-delimited string where a substring could countain commas