I want to extract all of the string after, and including, 'Th' in a string of text (column called 'COL_A' and before, and including, the final full stop (period). So if the string is:
'3padsa1st/The elephant sat by house No.11, London Street.sadsa129'
I want it to return:
'The elephant sat by house No.11, London Street.'
At the moment I have:
substr(SUBSTR(COL_A, INSTR(COL_A,'Th', 1, 1)),1,instr(SUBSTR(COL_A, INSTR(COL_A,'Th', 1, 1)),'.'))
This nearly works but returns the text after and including 'Th' (which is right), but returns the text before the first full stop (period), rather than the final one. So it returns:
The elephant sat by house No.
Thanks in advance for any help!