Hi All,
In Oracle 12c , I'm trying to extract value between the first '/' and ' -' characters using regexp_replace function. Could you please help me with the pattern ?
Here is what i tried but with no luck:
from value '65/1 - 31-MAR-17' I want to get just the 1 value which is after the '/' and before the slash '-'
select regexp_replace('65/1 - 31-MAR-17', '.*/(.+)-*', '\1' ) from dual
Result expected: 1
Result received: 1 - 31-MAR-17
Any ideas? Please keep in mind that after the slash the data could be characters or number(e.g. 001, 002, 00102, etc) but no special chars expected.
Regards,
Alex