Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Please tell me how to select only two levels from the above url's ^https?://www.chi.com[^/]*/([A-z0-9]*/?[A-z0-9]*).* business/world or business and should not match the word which has "-".http://www.chi.com/business/world/us-microsoft-reorganization.story http://www.chi.com/business/sns-rt-us-markets-stocks.story http://www.chi.com/business/sns-rt-us-bank-capital-us.story http://www.chi.com/business/sns-rt-us-bank-capital.story
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex help
by daxim (Curate) on Jul 12, 2013 at 10:35 UTC | |
|
Re: Regex help
by rjt (Curate) on Jul 12, 2013 at 10:32 UTC | |
|
Re: Regex help
by Monk::Thomas (Friar) on Jul 12, 2013 at 15:10 UTC |