Mayhap you want to take a multi-step approach.
$string =~ s/'$//; $string =~ s/\?'/'/g; @fields = split /\+/, $string;
I want to break each line up into its constituent fields. I can do it with brute force, but would prefer elegance.
I usually choose "working" over "not working" :-)
In reply to Re^3: Improved regexp sought
by duff
in thread Improved regexp sought
by myomancer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |