in reply to Re: creating a regular expression's alternation dynamically?
in thread creating a regular expression's alternation dynamically?
In the join, you might want to map quotemeta over @list so that any meta-chars (particulary |) get escaped.
Also you have to be careful that none of the strings are prefixes of another string, otherwise you'll find that ordering is significant in an alternation.
--
integral, resident of freenode's #perl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: creating a regular expression's alternation dynamically?
by mifflin (Curate) on Aug 06, 2004 at 17:27 UTC |