I have a column which has values like https://ysd.com/ert490ghlkh/gsum
I would like to fetch all the characters after com/ and before /gsum. In advance, I know how many characters to fetch after .com/ . Like I know 11 characters have to be fetched after .com.
I tried like
REGEXP_REPLACE(REGEXP_REPLACE(column1, 'https://ysd.com/', ''), '/gsum', '')
It doesn't seem to be ideal because the last part /gsum can vary. In that case, I have to write no of case statements which is equal to unique last part.
Can anyone say how to fetch no of characters after a particular substring?