in reply to Re^2: Grouped characters inside character class.
in thread Grouped characters inside character class.
Noted. So we capture up until the last ' on '.
use strict; use warnings; my $source = 'Posted by getting on my nerves on September 04, 2003'; if ( $source =~ /^Posted by (.*?) on (?!.* on )/i ) { print qq("$1") . "\n"; }
In Section
Seekers of Perl Wisdom