On Mon, 16 Aug 2004, Fontenot, Paul wrote:
Or this: <A href="http://www.microsoft.com/technet/treeview/?url=/technet/security/b ulletin/MS02-045.asp" target="_default">Microsoft Security Bulletin MS02-045</A>
How can I get this: MS02-045
The actual pattern would be MS0?-??? where the "?" could be any number
Try this:
my $html = qq[ <A href="http://www.microsoft.com/technet/treeview/?url=/technet/security/bulletin/MS02-045.asp" target="_default">Microsoft Security BulletinMS02-045</A> ]; my $bulletin = ( $html =~ /(MS\d+-\d+)/ );
That's untested, but I think it should work.
-- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/
np: 'Guns' by Quintaine Americana from 'Sharpshooter Blues'
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>