How to remove all characters after specific alphanumeric value from string for example "covid19 1st case" should be "covid19" if we remove string after 1st; in case of "covid19 2d case" it should be "covid19" if we remove string after 2d I am trying below query
select regexp_substr('covid19 1st case','[^1st]*') from dual;
but its giving covid as output any lead. if we have predefine alphanumeric values can we do it in single expression like we can remove all string after 1st and 2d.
Thanks