I have a string and I'd like to capture everything before "\Close_Out":
string: \fileshare\R and G\123456\Close_Out\Warranty Letter.pdf
The only solution I have come up with uses positive lookahead, this works when I test it on https://regex101.com/
(.*)(?=\\Close_Out)
But now I need to use it in an Oracle SQL statement :
select REGEXP_SUBSTR('\\fileshare\R and G\123456\Close_Out\Warranty Letter.pdf', '(.*)(?=\\Close_Out)') from dual
and it does not work since (I think) look ahead is not supported. Can someone assist with an alternative expression that will work in sql