hi all,
can anybody tell me how to get desired o/p when
my $output = "
http://www.dir1.com/dir2/dir3" ;
OR
my $output = "dir1/dir2/dir3" ; ##### it can be dir1/dir2/dir3/dir4 or dir1/dir2
(value of $output can be one of the above)
# INSERT regex here
so that I will have
$output = http:://
www.dir1.com ;