Nov-22-2019, 08:32 PM
Hi :)
If this is your entire string then you can do it liek this with re. expr.
-> RegexHelper
Kr
If this is your entire string then you can do it liek this with re. expr.
import re string = "<a class="a-link-normal a-text-normal" href="/Cybersecurity-Intelligent-Systems-Reference-Library/dp/3319988417/ref=sr_1_1?keywords=9783319988412&qid=1574431833&sr=8-1"> url = re.search("href=\"(.*)>", string) print(url.group(1)) #or: url_ = re.findall("href=\"(.*)>", string) print(url_)Here is the regexHelper I use :)
-> RegexHelper
Kr