Lets say we want to extract the substring from url till second occurrence of /.
e.g.
https://abc.def.com/abc?102/ extracted string should be abc.def.com/abc without ?102
http://abc.def/jkl/ghi/ extracted string should be abc.def/jkl
I want to achieve this without using regexp_substr/regexp_replace, which I have already tried.