in reply to Re: Grouped characters inside character class.
in thread Grouped characters inside character class.
my $source = 'Posted by getting on your nerves on September 04, 2003';
It's probably a good idea to anchor on more than just the ' on ' part like:
my $source = 'Posted by getting on your nerves on September 04, 2003'; if ($source =~ /Posted by (.+?) on \w+ \d{2}, \d{4}$/) { ... }
Regards
m.att
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Grouped characters inside character class.
by Enlil (Parson) on Jun 02, 2006 at 02:13 UTC | |
by blokhead (Monsignor) on Jun 02, 2006 at 02:56 UTC |