in reply to Re: More Variable length regex issues
in thread More Variable length regex issues

Well, if you KNOW there will always be 4 fields, then hardcode that in your regex:

m/^([^,]*),([^,]*),([^,]*),([^,]*)$/;

A warning: that regex wouldn't work right if there was comma embedded in quotes in one of the fields. I'd recommend using the Text::CSV_XS module, but as you state that you aren't actually using Perl...

Later

Replies are listed 'Best First'.
Re: Re: Re: More Variable length regex issues
by dextius (Monk) on Jun 09, 2003 at 00:46 UTC
    Yeah, the whole "variable length" part of the string is the problem. Thanks for your help..