How to solve these tasks?

Hi, I’m a newcomer of Python and still I’m in learning process. However, I bother myself with two tasks from Python because I even don’t know how to start, not to mention how to solve them. Although lecturers don’t want to help in any way, I am forced to look for a help on forum. So please if you know how to solve this let me know. Thanks in advance!

Exercise 1:

  1. Open and read the txt file.
  2. Use regex to find the necessary bit of the url.
  3. print the matched strings to the console.

Optional reads: Opening files, If you do not know regex at all, If you know regex, but want the Python code

If you are concise, you could do that with 3 lines of code.