Have you looked at the modules I linked? They will all happily extract the links.
Alternatively, you might want to (re)read perlre, but I would use an existing HTML parser instead of trying my own.
In reply to Re^3: How to strip everything in a string except HTML Link
by Corion
in thread How to strip everything in a string except HTML Link
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |