Disclaimer: I don't recommend manual URL parsing at all, since URLs can get quite hairy.
Don't use a regexp at all? 'split' may or may not be more appropriate. It depends on how you want to process the URL parts later on.
my @url = split / \/+ /xms, $url;
$url[0] = http: $url[1] = www.chi.com $url[2] = business
In reply to Re: Regex help
by Monk::Thomas
in thread Regex help
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |