Just another Perl shrine | |
PerlMonks |
Re: Grepping out stringsby g0n (Priest) |
on Feb 02, 2005 at 13:11 UTC ( [id://427232]=note: print w/replies, xml ) | Need Help?? |
$_ =~ /(http:\/\/[\w\.]+)/g; seems to work OK for URLs starting http://, but that doesn't match www.mysite2.com as that doesn't have a http prefix in your example string.
VGhpcyBtZXNzYWdlIGludGVudGlvbmFsbHkgcG9pbnRsZXNz
In Section
Seekers of Perl Wisdom
|
|