I have a table with a column containing many urls like this one:
https://myshop.com/lv/buitine-technika-elektronika/virtuves-iranga/virduliai/virdulys-elektrinis-virdulys-forme-fkg-147?id=22031685
I want to extract the id from the URL, but I have no idea how to do this. I could easily do this in Python later using this regex:
\?id\=(\d+)
But I'd like to have as much of data prepared in my query before going to python if that is possible. I know how to use regex in MySQL where clause, but no idea how to use it anywhere else. Is there a way to do this?
ID length can be different and there might be something else after that...