Macro to convert all hyperlinks in a text file to URLs

I’m in the process of changing from M$ Windows to Linux and from M$ Office Word to LibreOffice Writer.

In Word, I have a macro that automatically converts all (hundreds, maybe even thousands) hyperlinks in a text file to the corresponding URLs.
Quite likely I can do the same in Writer, but I would need to study the macro editor and I need the macro today.

Can anyone help me out, please? Thanks in advance!