I need to find fisrt, second and third substring from string like "One - Two-Two- Three-Three" by splitting them only by " - " (with first and last characters being spaces).
I can split them by "-", like:
regexp_substr(teenimi, '[^-]+', 1, 1 ) as a,
regexp_substr(teenimi, '[^-]+', 1, 2 ) as b,
regexp_substr(teenimi, '[^-]+', 1, 3 ) as c
which gives me result like: One // Two // Two, but I need One // Two-Two // Three-Three