select substr(yourfield, 0, instr(yourfield || '-', '-')-1) from yourtable
SQL> select regexp_substr('-49858974-94984985', '[^-]+') from dual;
REGEXP_S
--------
49858974
SQL> select regexp_substr('49858974-94984985', '[^-]+') from dual;
REGEXP_S
--------
49858974
SQL> select regexp_substr('49858974-', '[^-]+') from dual;
REGEXP_S
--------
49858974
SQL>