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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: regex question Underscores, lines and parentheses.
by hippo (Bishop) on May 06, 2019 at 12:28 UTC | |
by Aldebaran (Curate) on May 07, 2019 at 17:10 UTC | |
Re: regex question Underscores, lines and paratheses.
by Eily (Monsignor) on May 06, 2019 at 12:16 UTC | |
Re: regex question Underscores, lines and paratheses.
by AnomalousMonk (Archbishop) on May 06, 2019 at 16:50 UTC | |
Re: regex question Underscores, lines and paratheses.
by LanX (Saint) on May 07, 2019 at 12:47 UTC | |
Re: regex question Underscores, lines and paratheses.
by soonix (Canon) on May 06, 2019 at 11:59 UTC | |
Re: regex question Underscores, lines and paratheses.
by bliako (Monsignor) on May 06, 2019 at 12:01 UTC |
Back to
Seekers of Perl Wisdom