I have an a list of URL that looks like this:
I wanna scrape it to just get: ' https://www.superpopgadget.com/collections/best-sellers/products/sushi-roll-bazooka '
Not sure if there is any other more efficient method but this might work fine:
(.+)\?(.+)
It matches in the first group everything before the character ?
and the second group is everything after it. What you need is the first group.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.