Get hyperlink in a document

Hello,

Just wanted to ask if how to extract all the hyperlinks in one documents. Like, let’s say for example a paragraph. There are a lot of hyperlinks that needs to be extracted

What is the document format? Can you share a sample?