develooper Front page | perl.beginners | Postings from February 2002

question about regex

Thread Next
Yuan Cheng
February 25, 2002 17:07
question about regex
Message ID:
Hi, All:

I have problem with regex. I try to get some content
from a html source and print it out on the screen. 
the following is my code:

use LWP::Simple qw(get);
my $url = "";
my $html = get($url);
my $index = "some index number";

my @result = $html =~
print "$1\n";

I try to catch anything between <blockquote> and
</blockquote> based on $index. The resulte gave me the
first match in the source, which is empty space within
first pair of 


how to research the next pair of <blkqt> </blkqt>
which has ssome content inside? I tried several regex,
it just didn't work. Thanks


Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About