http://qs321.pair.com?node_id=484607


in reply to Regular expression help

Greetings beeconn66,

I'm not sure if this is exactly what you're looking for, and I'm certainly not a regex-master or anything, but how about this:

my $text = 'employee(firstname, lastname, soc)'; if ($text =~ /employee\(([^,\s)]+)\s*,\s*([^,\s)]+)\s*,\s*([^,\s)]+)/) + { print join("\n", $1, $2, $3); }

gryphon
Whitepages.com Development Manager (DSMS)
code('Perl') || die;