Oracle SUBSTR and INSTR SQL functions are typically used together in practice for parsing a string. Following are some examples uses that will exemplify how to take advantage of their combined power.
Top Level Domain (TLD) From An Email Address
1 2 3 4 5 6 7 8 | SELECT substr ( '[email protected]', instr('[email protected]','@',1)+1 ) FROM dual --returns: mandsconsulting.com |
Base URL
…