Question: 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 = r
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
