I'd like to remove a 'destinationId' parameter from a batch of URLs.
If i have a URL like this:
https://urlaub.xxx.de/lastminute/europa/zypern-griechenland/?destinationId=45&semcid=de.ub
How would i extract the 45? (destinationId=45)
I attempted to use something like this which i cant get to work:
destinationIdParameter <- sub("[^0-9].*","",sub("*?\\destinationId=","",url))