lepetitalbert has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I'm trying to write this :
$var =~ s/\(//; $var =~ s/\)//;
in one line. I thought it'll be :
$var =~ s/[\(\)]//;
but this only remove the left one.
Thanks.
Have a nice day.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: regex question
by Skeeve (Parson) on Oct 27, 2005 at 14:33 UTC | |
by lepetitalbert (Abbot) on Oct 27, 2005 at 14:40 UTC | |
Re: regex question
by Fletch (Bishop) on Oct 27, 2005 at 14:44 UTC | |
Re: regex question
by aquarium (Curate) on Oct 27, 2005 at 14:50 UTC | |
by Perl Mouse (Chaplain) on Oct 27, 2005 at 15:09 UTC | |
by sauoq (Abbot) on Oct 27, 2005 at 22:58 UTC | |
by Skeeve (Parson) on Oct 28, 2005 at 06:35 UTC | |
by Juerd (Abbot) on Oct 27, 2005 at 19:02 UTC |
Back to
Seekers of Perl Wisdom