I hope this question is not a RTFM one.
I am trying to write a Python script that extracts links from a standard HTML webpage (the <link href...
tags).
I have searched the web for matching regexen and found many different patterns. Is there any agreed, standard regex to match links?
Adam
UPDATE:
I am actually looking for two different answers:
- What's the library solution for parsing HTML links. Beautiful Soup seems to be a good solution (thanks,
Igal Serban
and cletus
!)
- Can a link be defined using a regex?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…