in reply to how to find what's not there with a regex?

Reversing the initial input makes the regex easier. The resulting array needs reversing and every item in the array needs reversing.
my $data = reverse <DATA>; my @answers = map {scalar reverse $_} reverse $data =~ /(.*?\s*?=\s.*?\w+)/g; print "$_\n" foreach (@answers);

Replies are listed 'Best First'.
Re^2: how to find what's not there with a regex?
by samizdat (Vicar) on Aug 24, 2005 at 16:38 UTC
    That's brilliant. You're absolutely right, that makes it much simpler!!!