LearnPy Hub
← Regular Expressions problems
Medium

Find the Links

Print every web address in the text, one per line (or none). An address starts with http:// or https:// and continues until a space.

Input

One line.

Output

Lines.

Sample 1

Input
Visit https://learnpyhub.dev or http://example.com/page now
Output
https://learnpyhub.dev
http://example.com/page

Sample 2

Input
no links
Output
none
solution.py
Output appears here
Find the Links · Python practice problem · LearnPy Hub