in reply to RE: Re: Regexp glitch while parsing record in CSV
in thread Regexp glitch while parsing record in CSV

The asterisk can be a little tricky. It means, match zero or more of the preceding. In a construct like \s*[^,]+\s*, the character class does match the spaces and the comma. The + is greedy, too.