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.

Nowhere do you get rid of the commas, so they still appear at the start of the next match, which is a problem: your doublequoted strings will never be recognized after the first match, because of this comma!

Actually, I was having that problem as well, and that explains it nicely. Thanks! I'll give your code a try as well.

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