In snowflake I try to get the first occurrence of the values between -> and -> in a column
I use regexp_substr with the following code, which return ->ABCD-> and not just ABCD
select regexp_substr('98547279->ABCD->2554785->DEFT', '->[[:alnum:]\-]+->') AS "SUBSTRING";
How can I prevent to get the -> -> in the result?