![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Grepping out stringsby Zaxo (Archbishop) |
on Feb 02, 2005 at 13:13 UTC ( #427234=note: print w/replies, xml ) | Need Help?? |
Assuming protocol and all, it's pretty easy with Regexp::Common: Your sample seems to omit the protocol and other bits that make a URI. Do you know they are all http? Try looking at the regex from R::C::URI and pick out the host-and-domain part. It will start with two literal slashes and run until the next slash or space, whichever comes first. After Compline,
In Section
Seekers of Perl Wisdom
|
|