welle has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks
I have this simple Index line
my $result = index($line, " ");what if I want the same $result not only if a space is found but also if other characters are found (as alternatives), let's say: [\(\)\,\.\;\:\-\?\!\'\] Is this possible?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: index regex
by johngg (Canon) on Jun 08, 2013 at 10:39 UTC | |
by AnomalousMonk (Archbishop) on Jun 08, 2013 at 11:13 UTC | |
|
Re: index regex
by CountZero (Bishop) on Jun 08, 2013 at 10:33 UTC | |
|
Re: index regex
by LanX (Saint) on Jun 08, 2013 at 10:04 UTC |