Hi All,
Please refer below examples -
When i am doing
- select regexp_substr('P/HOO/282/KWE/08/LATE TO LAND OR NO SHOW','(^|/)([^/]*)+(\s) (\S*).*') from dual;
This is the correct O/p that i am getting - LATE TO LAND OR NO SHOW
Now, when i am doing same for the below text it's giving below output.
- select regexp_substr('H/12/JHS/DSRP/UNKOWN/UNKOWN', '(^|/)([^/]*)+(\s)(\S*).*') from dual;
O/p - null; -- The output i want is this /DSRP/UNKOWN/UNKOWN
Why the expression is not working for the 2 example as it is working for the 1 example ?
Also, Can anyone also explain this expression - '(^|/)([^/]*)+(\s) (\S*).*)
Please advise !
Thanks