in reply to Playing with PerlMonks site (0) - See what user was more active
When I ran the program I noticed that some users were missing from the list. This is due to the regex that extracts the usernames. This is a bit better:
# Don't strip the tags #$html =~ s/<.*?>//gs ; my (@users) = $html =~ /<td>by\s[^>]+>([^<]+)/gs ; # Or this if there are Perlmonks with "<" in their username my (@users) = $html =~ m[<td>by\s[^>]+>(.*?)</a>]gs ;
--
John.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Playing with PerlMonks site (0) - See what user was more active
by gmpassos (Priest) on Jul 25, 2002 at 19:14 UTC |