epasveer has asked for the wisdom of the Perl Monks concerning the following question:
Is there a module, or does someone have a way of expanding a string that contains a regexp?
For example, I'd like to expand this text into a list of hosts.Thanks."rack[001-004]" => "rack001", "rack002", "rack003", "rack004"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Expanding reg expression.
by Corion (Patriarch) on Oct 31, 2007 at 19:26 UTC | |
|
Re: Expanding reg expression.
by moritz (Cardinal) on Oct 31, 2007 at 20:00 UTC | |
|
Re: Expanding reg expression.
by amarquis (Curate) on Oct 31, 2007 at 19:37 UTC |