http://qs1969.pair.com?node_id=1233391

sbrothy has asked for the wisdom of the Perl Monks concerning the following question:

I want to a regex which is able to match [a-zA-Z0-9_- and parantheses]. I´ve had some luck with ::alpha:: but not enough. And when I add the parantheses it goes all kablooey. Ive tried escaping them and not but to no avail.

Something along the lines of:

if($line =~ /^([A-Za-z0-9_-()]+)\d+/) {
What am I doing wrong?

Discipulus added code tags