Give it a try on your own first, and tackle it in bits and pieces. Use "select (your use of instr and substr) from dual."
07-07-2004, 06:31 PM
ericdkauff
That's what I was looking for! So simple, I looked right over it:
substr(URL , 0, (instr(URL , '/', 1)-1))
Thanks for the inspiration! As a side note, this little application of these functions isn't anywhere on the internet! Somebody might want to pick this up & post it where it can be found again.....
- Eric
07-07-2004, 06:51 PM
stecal
Of course, you'll be wanting to test that before using it.
Sorry - forgot to mention that the data feed I'm using this for strips out the 'http://' part of the URL. However, it's a simple fix even if they didn't:
Didn't you say you only wanted the "tahiti.oracle.com" (or the original yahoo one) part of the URL?
07-08-2004, 02:29 PM
ericdkauff
Yes, that is what I said. But given that the data provider already strips the 'http://' portion of the URL, the first option that I came up with works.
However, if that wasn't the case, I could still get to that result through this piece: