Extract All https links from the text data using python in one line code

Опубликовано: 17 Февраль 2026
на канале: startML
93
0

Code :
Example text corpus
text = """
For more information, visit our website: https://www.example.com
You can also find us on social media:
Facebook:   / example  
Twitter:   / example  
Check out our online store: https://store.example.com
"""
text = text.split()
links = [link for link in text if link.startswith("https://")]
print(code)

#python #youtubeshorts #chandryaan3 #pythonprogramming #viral #viralvideo #coding