in reply to Re: Perl is returning... odd results... from regular expressions. Things matching when they shouldn't, and stuff like that.
in thread Perl is returning... odd results... from regular expressions. Things matching when they shouldn't, and stuff like that.

Actually, the "?" is useful. It makes it non-greedy. As this CSV file can have multiple strings, if it isn't included, it returns EVERYTHING between the first and last quote mark.

As to the other question marks, like the (?=,) portion, those are lookaheads.

I appreciate the reply, though! Thanks!

  • Comment on Re^2: Perl is returning... odd results... from regular expressions. Things matching when they shouldn't, and stuff like that.