Can I select all lines containing hyperlinks in a writer document?

I have a number of hyperlinks in a document. I would like to be able to select all of them, with the rest of the text on the line, so that I can copy them and make a list of the information on the rest of the line.

E.g. I have :
Hyper.link/1 [information about hyperlink]

lots of text

hyper.link/2 [information about hyperlink 2]

lots more text

and I want

  • Hyper.link/1 [information about
    hyperlink]
  • hyper.link/2 [information
    about hyperlink 2]

Is it possible?

Thanks

Using the regular expression

^http[:print:]+$

then copying and pasting has done what I wanted.

The term “hyperlink” is more general than what you search for.
I couldn’t find something about a RegEx character class [:print:]. My LibO (ICU REgEx engine) doesn’t know it. Would you point me to a specification, please?
The RegEx you search for will only find complete paragraphs containing an accepted string and nothing else.
Whatever [:print:] should mean, it surely doesn’t describe the full syntax of a valid URL under a http(s) protocol.
I feel lost with your answer.

I know it doesn’t match ALL hyperlinks but all the hyperlinksI needed to match started with the http protocol. All lines (or perhaps more technically paragraphs?) starting http containing printable characters should be matched. It got the job done and I doubt I’ll need to do it again!

I used List of Regular Expressions - LibreOffice Help to advise me on the syntax.

Once all instances were selected I could copy, paste to where I needed the list and reformat it.

I’m using Version: 5.1.6.2
Build ID: 1:5.1.6~rc2-0ubuntu1~xenial4
CPU Threads: 4; OS Version: Linux 4.4; UI Render: default;
Locale: en-GB (en_GB.UTF-8); Calc: group

Thanks.
And sorry. I didn’t consult the help in this case, but asked my preferred RegEx info without success. (Should have known anyway!)
Concerning my test with V6.1.4.2: It failed. I may have to check my user profile.
Meanwile also tesed with V6.2.0.0beta1: Your RexEx worked in the limited way you described.

Your question is akin building an index of hyperlinks. Then the easiest way to do that is to enter your sentences, paragraphs or whatever run of characters in the index.

You have 2 options for the resulting table:

  • list your hyperlinks in the order they appear in the text, as is, without duplicate removal
  • list your hyperlinks in alphabetical order, duplicates merged into a single line

This choice is critical for the procedure. In the first case you use a user-defined index. In the second case, this is the built-in alphabetical index.

The first step is preparation of “bookmarks”:

  • select the run of characters you want in your index entry
  • Inset>Table of Contents & Indexes>Index Entry
  • make sure the correct Index is selected in the drop-down menu
  • push Insert
  • repeat for every entry

This may be a bit long and boresome the first time, but afterwards you need to do it only for new entries

The second step is index insertion.

  • put the cursor where you want the table to appear
  • Insert>Table of Contents & Indexes>Table of Contents & Indexes
  • make sure the correct index is selected from the drop-down menu
  • push OK

Whenever you add a new entry, you only need to Tools>Update>Update all or right-click on index and Update index to include the new hyperlink in the table.

The format of entries can be customised at will (e.g. removing the page number if you don’t want cross-references, adding bullets or not, etc.). All these is a matter of playing with the index template in the dialog and specific paragraph styles.

You are encouraged to read the user’s guide freely downloadable from the document foundation site.

To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!