premchai21 has asked for the wisdom of the Perl Monks concerning the following question:
and prel and postl both already are regexen. However, when I attempt to execute it, I get:my $ex = ($prel . '(' . join("|",map { '\Q' . $_ . '\E' } keys %stuff) + . ')' . $postl);
nested *?+ in regexp at ./foo line 42, <> chunk 1.
What's going on? There aren't any nested *?+ as far as I can tell.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex
by japhy (Canon) on Apr 06, 2001 at 21:01 UTC | |
by premchai21 (Curate) on Apr 06, 2001 at 23:55 UTC | |
|
Re: Regex
by runrig (Abbot) on Apr 06, 2001 at 21:02 UTC |