Hail again,
here is some code I 'lifted' from different places to do pretty much
what I want... unforutnately, it doesn't work and I am working on trying to
fix it...
##########################
open IFILE,"<log.txt" or die "Can't Open file:: $!";
@lines=<IFILE>;
$text = join "\n", @lines;
@hrefs=($text=~ m{ \"(?

-)|http\:\/\/(.*?))\"\s+ }x);
print "list of href values\n";
$count = 1;
foreach $href (@hrefs) {
print "$href\n";
$count++;
}
print $count;
close IFILE;
##########################
thanks,
Jaga
"Jaga" <> wrote in message
news:blhq2d$4v4$...
> hail all,
> I am trying to write a regular expression to match a url in a text
file.
> the test file looks like below under the *********
> I would like to match all the urls a print them out...
> I think this is easy for most but a pain in the neck for me
>
> thanks!
>
>
> ************
> ;V8q|`<F- L/& ?Q ` h
> 6/$h :2003091520030922:
> tfred@http://quintillium.com/mslegal/tssi986
> URL ssq|`<F- L/ ?Q ` h
> 6/$h :2003091520030922:
> tfred@http://ninet/Lists/Announcements/DispForm.h
>
>