in reply to Re^3: help with regexin thread help with regex
if (/string=\"(\d+)\"|static-address\/(.*?)\"/) { my $id = defined($1) ? $1 : $2; [download]
And then there's this:
if (/string=\"(\d+)\"/ || /static-address\/(.*?)\"/) { my $id = $1; [download]