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:
What am I doing wrong?if($line =~ /^([A-Za-z0-9_-()]+)\d+/) {
Discipulus added code tags
Back to
Seekers of Perl Wisdom