Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help fill the code r'...' thanks Assign a regular expression to a new variable weblink_re that captures all of the web links within a
Please help fill the code r'...'
thanks
Assign a regular expression to a new variable weblink_re that captures all of the web links within a tweet. Hint: A web link always starts with http:// or https://. It is then followed by www. , the domain name and any additional subdomain names (subdomian names are separated by / ). For example, for the web link https://www.ds100.org/sp21/syllabus , we are looking at the domain ds100.org with the subdomain sp21 and its inner sudomain syllabus . The domain and subdomain names can be any number of consecutive alphanumeric characters. Note: For simplicity, you can assume that in our case, the domain always starts with www . You may also assume that a web link will never end in /. For example, the weblink https://www.ds100.org/ will not be considered valid for this question. It will be https://www.ds100.org instead. [202]: weblink_re = rStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started