in reply to
regex problem
You may base your regexp on this: (This one matches ), but not those following '. )
$s = "(abcd')'1234)"; $s =~ m/(\(.*?(?<!\')\))/; print $1;
[download]
Be careful, I took two assumptions, which fit your sample data:
there is no \'(backslash quot)
if you have ) in quots, it always comes right after the '
Comment on
Re: regex problem
Download
Code
In Section
Seekers of Perl Wisdom